You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context: I have a lot of troubles having pm2 work within a ES6 written codebase (import). (experimental module flag, type: "module" in package.json, etc. I know there are other issues about it.
I'd like: to be able to use the .cjs extension for ecosystem.config.cjs
But it seems that the file is not found and it defaults to package.json where I have no config for pm2.
That said: per the docs:
Note that using a Javascript configuration file requires to end the file name with .config.js
Not too sure why we can not use any name we want, but if this is hard coded, I guess that's the reason it's not working.
Can we do something about it please?
PS: pm2 is awesome ;)
The text was updated successfully, but these errors were encountered:
Check out #4662. If you need it before (or if?) it gets merged, use: npm install git://github.com/Timic3/pm2.git#fix/common-module-import -g
The pull request has been merged into development branch, so you can now install it with npm install git://github.com/Unitech/pm2.git#development -g. This issue can now be closed. :)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
What's going wrong?
Context: I have a lot of troubles having pm2 work within a ES6 written codebase (
import
). (experimental module flag, type: "module" in package.json, etc. I know there are other issues about it.I'd like: to be able to use the
.cjs
extension forecosystem.config.cjs
But it seems that the file is not found and it defaults to package.json where I have no config for pm2.
That said: per the docs:
Not too sure why we can not use any name we want, but if this is hard coded, I guess that's the reason it's not working.
Can we do something about it please?
PS: pm2 is awesome ;)
The text was updated successfully, but these errors were encountered: