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

Next.js: Global CSS cannot be imported from within node_modules #66

Open
ryscheng opened this issue Jan 19, 2023 · 0 comments
Open

Next.js: Global CSS cannot be imported from within node_modules #66

ryscheng opened this issue Jan 19, 2023 · 0 comments

Comments

@ryscheng
Copy link
Contributor

I'm trying to create a React library using Plasmic components. This React library will then be published to npm and imported into a separate Next.js application.

Next.js does not support global CSS from node_modules, which prevents me from using the React library.
See:
vercel/next.js#19936

This is true if I use either the Headless API or Codegen in the React library.
I think it's because Plasmic components import the following file globally
https://github.com/plasmicapp/plasmic/blob/master/packages/react-web/src/styles/plasmic.css

Would it be difficult to move the necessary CSS somewhere else?

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

1 participant