-
Notifications
You must be signed in to change notification settings - Fork 93
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
Importing from css results in module.exports = "/_next/static/images..."
#135
Comments
Looks like the issue is related to next.js itself. I have tried regular url-loader and result was the same. |
Looks like the new CSS support broke this for all similar plugins: vercel/next.js#11164 (comment)
|
Yes the cause was the newly introduced CSS support in nextjs. But I was now finally able to overwrite the nextjs builtin image handling (only images, not the whole css/sass feature), which should hopefully solve all those errors. |
Next-Images does work with new CSS modules in NextJS 🤷 |
It has already been fixed within the currently published version on npm, so I'll close this issue. Also, I'm currently working on the next major version which is a complete rewrite and should resolve all other open issues (+ providing many new features). If you are interested, you can check out the canary branch. |
getting this same exact issue still :/ even after implementing changes here |
Same problem in Nextjs 12. I've tried also the canary release but the issue still occurs. |
I've created a pull request to fix the compatibility with Next.js >= 11 since the rule conditions are changed with the new Next.js release. |
@cyrilwanner would be great to check the PR for NextJS >= 11 support |
Imports in CSS files produce broken images.
Not only SVG but at least JPEG too.
next.config.js
Dependencies
Probbaly related to vercel/next.js#11164
The text was updated successfully, but these errors were encountered: