-
Notifications
You must be signed in to change notification settings - Fork 91
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
responsive-loader with sharp error #50
Comments
Hi @qeneke |
Got the same error
I solved the problem like this for the moment in responsive-loader.js
wrong : |
I got the same error Error: Cannot find module '.../node_modules/responsive-loader/lib/cjs.js/sharp' |
Im still getting this error with version: 2.6.2. Can we reopen this issue? |
Same for me. Work with 2.0.0 but not for 2.0.1 and 2.0.2 |
I'm having the same issue 😩 |
Same issue. |
Same Issue |
I've made a PR and a temporary package |
- Package | https://www.npmjs.com/package/@mrroll/next-optimized-images - Pull Request | cyrilwanner/next-optimized-images#201 - Issue | cyrilwanner/next-optimized-images#50 - Change eslint configuration. - Update dependencies.
Same problem. |
Temporary fix until following gets addressed: - Issue: cyrilwanner/next-optimized-images#50 - PR: cyrilwanner/next-optimized-images#201
* chore(deps): update dependency responsive-loader to v2.1.1 * build: patch dependency next-optimized-images Temporary fix until following gets addressed: - Issue: cyrilwanner/next-optimized-images#50 - PR: cyrilwanner/next-optimized-images#201 Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Daniel Emod Kovacs <[email protected]>
For anyone still having this issue, downgrade the package to 2.0.0 for now. Hopefully, it'll be fixed for newer versions.
|
Any word on a fix for this? |
Unfortunately, this is not working for me. Using it with nuxt-optimized-images |
Having this issue, still no fix? |
Wow! It's been a long ride! |
Hey everyone, I didn't try it but I found this on responsive-loader's npm: If you want to use sharp, you need to configure responsive-loader to use its adapter:
Not gonna lie, I went for Jimp, but I thought this could help. |
Defining Sharp as adapter in config worked for me, thanks |
Adding
to the nextjs config should help, following the implementation at
|
I get this error when I use the responsive-loader with sharp, but it works well with the jimp module.
-Windows OS
The text was updated successfully, but these errors were encountered: