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

Node 22.12.0 changed module imports, breaking assetpack config loading #123

Open
sylvainpolletvillard opened this issue Feb 15, 2025 · 1 comment

Comments

@sylvainpolletvillard
Copy link

My assetpack pipeline stopped working when i moved from Node 22.11.0 to Node 22.12.0

Investigating the cause, i found out the default export of the config was handled differently:

Image

I fixed the problem by adding .default after the config loading here:

Image

@miltoncandelero
Copy link

I think it is due to how node now can kinda require an esm file (.mjs)

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

No branches or pull requests

2 participants