Skip to content

Prosemirror Global CSS cannot be imported from within node_modules #38

Description

@bapinmalakar

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions