You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, running into an issue where importing css files within my nextApp works perfectly fine, however, installing a 3rd party package that is only transpiled (modules not compiled / bundled) breaks the build because one of the files has a css import, anyone have tips for solving this?
This also isn't really limited to CSS, the same would be the case with images, or any non JS modules it seems like for that matter.
The error is (FYI, this only happens in nextJS app, works fine with regular react):
Module not found: Can't resolve './style.css' in '<name_of_third_party_package>/lib/js/components'
To stick to this specific example, though, as a test I tried creating below file, but it still doesn't do it:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey, running into an issue where importing css files within my nextApp works perfectly fine, however, installing a 3rd party package that is only transpiled (modules not compiled / bundled) breaks the build because one of the files has a css import, anyone have tips for solving this?
This also isn't really limited to CSS, the same would be the case with images, or any non JS modules it seems like for that matter.
The error is (FYI, this only happens in nextJS app, works fine with regular react):
To stick to this specific example, though, as a test I tried creating below file, but it still doesn't do it:
next.config.js
Beta Was this translation helpful? Give feedback.
All reactions