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
Fixing this would either be a major version change or we'd need to add a separate entry file for nextjs to workaround that.
In the meantime, you can use the patch package package. Find where we import the css file (I'm on my phone, without my computer anywhere close to me) and remove that line. Then import the css file directly yourself in your code, and that should work. If you are using esmodules with typescript's node next (node 16) resolution, you might need to modify the package.json file to add exports and the css file to that exports config.
And then run patch package with the --exclude 'nothing' option, which allows it to patch the package.json file successfully.
You need to use Next.js with the src/app directory which allows you to import css in external npm packages. This solved it for my case: CSS files can now be imported inside any layout or page, including styles from external npm packages.
See this thread with the resolution on the last comment: vercel/next.js#27953 (comment)
I copied given example but it's not working with NextJS, any idea?
The text was updated successfully, but these errors were encountered: