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

Prosemirror Global CSS cannot be imported from within node_modules #38

Open
bapinmalakar opened this issue Jul 28, 2021 · 1 comment
Open

Comments

@bapinmalakar
Copy link

bapinmalakar commented Jul 28, 2021

I am getting following error, not able to build my project

error - ./node_modules/@aeaton/prosemirror-placeholder/style/placeholder.css
Global CSS cannot be imported from within node_modules.
Read more: https://nextjs.org/docs/messages/css-npm
Location: node_modules/@aeaton/prosemirror-placeholder/placeholder.js
/Users/biplab/Desktop/H2M/h2m-landing/node_modules/@aeaton/react-prosemirror/index.js:1
export * from './ChangeHandler';
^^^^^^

SyntaxError: Unexpected token 'export'

"@aeaton/react-prosemirror": "^2.0.3",
"@aeaton/react-prosemirror-config-default": "^2.0.3",
"next": "11.0.1",
"react": "17.0.2",

Code I wrriten

import { HtmlEditor, Toolbar, Editor } from "@aeaton/react-prosemirror";
import {
plugins,
schema,
toolbar,
} from "@aeaton/react-prosemirror-config-default";




As per the mentioned in document: https://github.com/hubgit/react-prosemirror

Repository owner deleted a comment from aeaton-overleaf Feb 7, 2022
@hubgit
Copy link
Owner

hubgit commented Feb 7, 2022

This seems to be generally a problem with Next.js, with an open RFC.

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

2 participants