question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

compilation error with nextJS

See original GitHub issue

We can’t compile when using nextJS:

[ wait ]  compiling ...
[ error ] /Users/user/Documents/myproject/client/node_modules/react-perfect-scrollbar/dist/css/styles.css
Global CSS cannot be imported from within node_modules.
Read more: https://err.sh/next.js/css-npm
Location: ../../@coreui/react/es/SidebarNav.js

More information about it: https://github.com/zeit/next.js/blob/master/errors/css-npm.md Can you please help how to fix this? Thanks.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

2reactions
mankutilacommented, Nov 12, 2020

This is still an issue

0reactions
github-actions[bot]commented, Jan 23, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions

Read more comments on GitHub >

github_iconTop Results From Across the Web

Next.js is stuck compiling · Issue #10998 - GitHub
When I start my express server, which implements next, I navigate to a page and it starts compiling it as usual. It then...
Read more >
Advanced Features: Error Handling - Next.js
Handle errors in your Next.js app. ... Next.js Compiler ... React Error Boundaries is a graceful way to handle a JavaScript error on...
Read more >
Next.js Compile error, property undefined - Stack Overflow
I am assuming that components does not have data before render. How to solve this problem? reactjs · next.js · Share.
Read more >
5 Most Commonly error face is Next.js? | Nextjs - Medium
Global CSS. In nextjs, you do not import global files on every page. If you do that, you face a failed compile error...
Read more >
Newbie getting build errors with Next.JS : r/reactjs - Reddit
Newbie getting build errors with Next.JS ... Hi, I'm getting a build error, website looks fine with npm run dev. Not sure what...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found