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
./node_modules/@uiw/react-markdown-preview/lib/esm/styles/markdowncolor.css
Global CSS cannot be imported from within node_modules.
Read more: https://err.sh/next.js/css-npm
Location: node_modules/@uiw/react-markdown-preview/lib/esm/index.js)
Really just need to install it on NextJS, its a policy they enforce.
Expected behavior
It should be able to build properly, but because of the import of global CSS it does not.
Actual behavior
info - Creating an optimized production build
Failed to compile.
./node_modules/@uiw/react-markdown-preview/lib/esm/styles/markdowncolor.css
Global CSS cannot be imported from within node_modules.
Read more: https://err.sh/next.js/css-npm
Location: node_modules/@uiw/react-markdown-preview/lib/esm/index.js
Subject of the issue
./node_modules/@uiw/react-markdown-preview/lib/esm/styles/markdowncolor.css
Global CSS cannot be imported from within node_modules.
Read more: https://err.sh/next.js/css-npm
Location: node_modules/@uiw/react-markdown-preview/lib/esm/index.js)
Your environment
"@fortawesome/fontawesome-svg-core": "^1.2.32", "@fortawesome/free-solid-svg-icons": "^5.15.1", "@fortawesome/react-fontawesome": "^0.1.14", "@tailwindcss/typography": "^0.3.1", "@testing-library/jest-dom": "^4.2.4", "@testing-library/react": "^9.5.0", "@testing-library/user-event": "^7.2.1", "@uiw/react-md-editor": "^2.0.3", "autoprefixer": "^10.0.4", "axios": "^0.21.1", "cssnano": "^4.1.10", "moment": "^2.29.1", "next": "latest", "postcss": "^8.1.10", "react": "^17.0.1", "react-dom": "^17.0.1", "react-markdown": "^5.0.3", "react-moment": "^1.1.1", "tailwindcss": "^2.0.2", "tailwindcss-markdown": "^1.0.1"
Steps to reproduce
Really just need to install it on NextJS, its a policy they enforce.
Expected behavior
It should be able to build properly, but because of the import of global CSS it does not.
Actual behavior
info - Creating an optimized production build
Failed to compile.
./node_modules/@uiw/react-markdown-preview/lib/esm/styles/markdowncolor.css
Global CSS cannot be imported from within node_modules.
Read more: https://err.sh/next.js/css-npm
Location: node_modules/@uiw/react-markdown-preview/lib/esm/index.js
More info vercel/next.js#19936
The text was updated successfully, but these errors were encountered: