How to resolve SyntaxError: Unexpected token issue in Hapi.js 19.x?

I faced the same issue when I tried to test Hapi on my cloud container before. For my case, there has compatibility issue between Hapi version (I used v19.1.1) and Node version (my server default version 10.16.0).

To resolve the issue, we need to upgrade the Node version to 12.x.

That’s it. I hope this will help. 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *