Adonis 4 error on Ignitor file on production which i did not touch that file
Hi,
I got this error on my server which totally i did not open/edit that file.
at Object.
No issue in my local. I just really don't know how the cause of it. Version on my server nodejs version is v9.11.1 npm version is 5.6.0
Adonis 3.2, no problem at all. Only this latest version which i have that problem.
I only get this error if I use a node version that doesn't support Async/Await
i'm using nodejs v9.11.1
nodejs version in my laptop is v8.9.1 which is working. maybe i have to downgrade to that version.
It should work on 9.x too.
How are you detecting the version on your server? Try adding console.log(process.version) into server.js just to check the version the script is actually being run under
the app die right away after pm2 restart server.js

i downgrade my nodejs version to v8.9.1 same with my local node version and the problem are still the same. :(
It could be a problem with PM2. What happens if you run server.js directly in the command line?
this is the display which i think is working since that console you suggested display.

Yes that looks right. Then the app starts serving ok?
No. The solution was to upgrade to latest version of NPM. Its working now with latest version of NPM. Thanks @webdevian . Really appreciate it. 😄
Closing now this ticket since issue is been resolve and not related to AdonisJS.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.