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

Incompatible with Next.js. #49

Open
rommelmamedov opened this issue Sep 29, 2020 · 3 comments
Open

Incompatible with Next.js. #49

rommelmamedov opened this issue Sep 29, 2020 · 3 comments

Comments

@rommelmamedov
Copy link

Error: "Global CSS cannot be imported from within node_modules." error in Next.js

It's because of CSS import in main index.js file.

import './modali.css';

@darwinshameran
Copy link

Using @zeit/next-css yields error:

.modali-overlay {
^


SyntaxError: Unexpected token '.'
    at wrapSafe (node:internal/modules/cjs/loader:1018:16)
    at Module._compile (node:internal/modules/cjs/loader:1066:27)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1131:10)
    at Module.load (node:internal/modules/cjs/loader:967:32)
    at Function.Module._load (node:internal/modules/cjs/loader:807:14)
    at Module.require (node:internal/modules/cjs/loader:991:19)
    at require (node:internal/modules/cjs/helpers:92:18)

@atefBB
Copy link

atefBB commented Feb 27, 2021

@rommelmamedov Did you solve this issue? Any help can be appreciated!

@ramilmamedoff
Copy link

@rommelmamedov Did you solve this issue? Any help can be appreciated!

No, I just used React-Modal :)

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

4 participants