Skip to content
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

Support node >= 18.19 for --import support on nodejs #1050

Open
dodtsair opened this issue May 14, 2024 · 0 comments
Open

Support node >= 18.19 for --import support on nodejs #1050

dodtsair opened this issue May 14, 2024 · 0 comments

Comments

@dodtsair
Copy link

With node 18.19 nodejs modified the deprecated --loader support and changed it to --import. This is often used as a way for security scanning software to scan the runtime for vulnerable software see contrast: https://www.npmjs.com/package/@contrast/agent

The old --loader mechanism breaks the nextjs framework. It can't handle files without extensions next vs next.js.

Upgrading to the lastest node v18 will bring in support for import which does not have this limitation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants