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

Cannot use with NextJS #1341

Closed
davidroeca opened this issue Mar 14, 2021 · 4 comments
Closed

Cannot use with NextJS #1341

davidroeca opened this issue Mar 14, 2021 · 4 comments

Comments

@davidroeca
Copy link

davidroeca commented Mar 14, 2021

When attempting to use this package with NextJS, the following error occurs:

Failed to compile

./node_modules/jsuites/dist/jsuites.css
Global CSS cannot be imported from within node_modules.
Read more: https://err.sh/next.js/css-npm
Location: node_modules/jspreadsheet-ce/dist/index.js

The root of the issue is that there is a CSS import within this package, which NextJS does not support.

NextJS recommends the following: Reach out to the maintainer and ask for them to publish a compiled version of their dependency. Would this be possible? Would probably just be a matter of having a separate JS file that does not import the CSS file but does everything else the same way.

@hodeware
Copy link
Collaborator

I will be working on a solution this week.

@hodeware
Copy link
Collaborator

hodeware commented Apr 5, 2021

Ok, that has been removed. From v4.7.3 the CSS should be the handler on the application.

@hodeware hodeware closed this as completed Apr 5, 2021
@karanYC
Copy link

karanYC commented Mar 13, 2024

hey @hodeware was there a solution for this? I am facing the same problem

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

3 participants