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

require() of ES Module #363

Open
Venegrad opened this issue Apr 8, 2022 · 2 comments
Open

require() of ES Module #363

Venegrad opened this issue Apr 8, 2022 · 2 comments

Comments

@Venegrad
Copy link

Venegrad commented Apr 8, 2022

require() of ES Module C:\Users\veneg\Desktop\digital\node_modules\imagemin-mozjpeg\index.js from C:\Users\veneg\Desktop\digital\node_modules\@aceforth\nuxt-optimized-images\lib\loaders\img-loader.js not supported.    
Instead change the require of index.js in C:\Users\veneg\Desktop\digital\node_modules\@aceforth\nuxt-optimized-images\lib\loaders\img-loader.js to a dynamic import() which is available in all CommonJS modules.

  Instead change the require of index.js in node_modules\@aceforth\nuxt-optimized-images\lib\loaders\img-loader.js to a dynamic import() which is available in all CommonJS modules.

require() of ES Module C:\Users\veneg\Desktop\digital\node_modules\imagemin-mozjpeg\index.js from C:\Users\veneg\Desktop\digital\node_modules\@aceforth\nuxt-optimized-images\lib\loaders\img-loader.js not supported.    
Instead change the require of index.js in C:\Users\veneg\Desktop\digital\node_modules\@aceforth\nuxt-optimized-images\lib\loaders\img-loader.js to a dynamic import() which is available in all CommonJS modules.

  Instead change the require of index.js in node_modules\@aceforth\nuxt-optimized-images\lib\loaders\img-loader.js to a dynamic import() which is available in all CommonJS modules.

Im following instruction but getting an error in nuxt

@Venegrad
Copy link
Author

Venegrad commented Apr 8, 2022

imagemin and svgo downgrade to v9 helps, but u need to update your module to new version of optimizators

@yordis
Copy link

yordis commented Aug 10, 2022

Hey peeps, any update on this one?

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