-
Notifications
You must be signed in to change notification settings - Fork 84
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 issue Global CSS cannot be imported from within node_modules. #46
Comments
Got the same issue |
I've got the same issue. I tried npm install @types/react-gauge-chart and it worked! |
Did not work for me |
Same - not working for me |
Decided to get a temporary fix. Next JS users may install the module using: In _app.js: Use as "react-gauge-chart-nextjs-support": This is only intended to be a temporary solution for nextJS users. Hopefully the maintainers of this project will fix this issue in the future. Meanwhile, we can't stop coding! |
@BossBele thanks |
@younes6970 You're welcome! |
Hi i tried your solution but is not working @@BossBele.... looks like deleting this line the problem is solved https://github.com/BossBele/react-gauge-chart/blob/master/dist/GaugeChart/index.js#L14 |
@joeleduardo It was commented earlier.. Looks like the recent push was not efficient. It is fixed now |
Do you know when will be merged your changes? (to the main repo) @BossBele |
Not exactly Sir @joeleduardo but It is in the process. However, there is another workaround (using next-css) I am currently verifying. If it works, there won't be a need for the Pull Request to be merged. I will post here my findings. |
@joeleduardo there is a workaround using
Then use next dynamic import with no ssr to import GaugeChart:
|
@BossBele Your pull request is merged with master now |
@BossBele i believe that |
@joeleduardo Oh, okay |
uiwjs/react-md-editor#52 (comment)
|
When installing and using the library in my next.js project, I got this issue:
The text was updated successfully, but these errors were encountered: