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 error Global CSS cannot be imported from within node_modules. #473

Open
arshadalisoomro opened this issue Jan 18, 2023 · 1 comment

Comments

@arshadalisoomro
Copy link

I have followed each and every step mentioned Here , but always I get:

error - ./node_modules/@uiw/react-markdown-preview/esm/styles/markdown.css
Global CSS cannot be imported from within node_modules.
Read more: https://nextjs.org/docs/messages/css-npm
Location: node_modules\@uiw\react-markdown-preview\esm\index.js

Import trace for requested module:
./node_modules/@uiw/react-markdown-preview/esm/styles/markdown.css
./node_modules/@uiw/react-markdown-preview/esm/index.js
./node_modules/@uiw/react-md-editor/esm/Editor.js
./node_modules/@uiw/react-md-editor/esm/index.js
./components/Contact.tsx
@jaywcjlove
Copy link
Member

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

2 participants