New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SyntaxError: Unexpected token import #4588
Comments
Fixed thanks for reporting npm install pm2 -g
pm2 update |
Great, thanks! |
I am still seeing this issue with pm2 v4.2.3
These are simple applications started with a pm2.config.js file that looks like: module.exports = {
/**
* Application configuration section
* http://pm2.keymetrics.io/docs/usage/application-declaration/
*/
apps: [// First application
{
name: 'SOC2',
script: 'bin/www',
log_date_format: 'YYYY-MM-DDTHH:mm:ss.SSS',
env: {
NODE_ENV: 'production'
}
}
]
}; |
@Unitech I was able to temporarily fix this by changing /**
* Override cluster module configuration
*/
cluster.setupMaster({
windowsHide: true,
exec : path.resolve(path.dirname(module.filename), 'ProcessContainerLegacy.js')
}); This is on Node v13.9.0 |
I am also experiencing the same issue, I'm running node v12.0.0 and PM2 4.2.3. |
@Unitech can you reopen this, or should it be a different issue? I enforced the two affected microservices I work with to node 10 in the end, but it seems to be that others might experience the same issue. |
Can you show the error log and pm2 report ? |
@krystianjj I attached two |
What's going wrong?
When try to run pm2 start server.js I have error
How could we reproduce this issue?
Start pm2 with latest version
Supporting information
Until today morning everything working great. I see that yesterday pm2 was updated to version 4.2.2
The text was updated successfully, but these errors were encountered: