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

You may need an appropriate loader to handle this file type. #417

Open
lozhu20 opened this issue Apr 3, 2022 · 1 comment
Open

You may need an appropriate loader to handle this file type. #417

lozhu20 opened this issue Apr 3, 2022 · 1 comment

Comments

@lozhu20
Copy link

lozhu20 commented Apr 3, 2022

引入报错:

`ERROR Failed to compile with 2 errors 7:48:39 PM

error in ./node_modules/tiptap/dist/tiptap.esm.js

Module parse failed: Unexpected token (126:23)
You may need an appropriate loader to handle this file type.
| } = this.node;
| const pos = this.getPos();
| const newAttrs = { ...this.node.attrs,
| ...attrs
| };

@ ./node_modules/element-tiptap/lib/element-tiptap.esm.js 1:19-170 1:170-195
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8001 webpack/hot/dev-server ./src/main.js

error in ./node_modules/tiptap-extensions/dist/extensions.esm.js

Module parse failed: Unexpected token (175:15)
You may need an appropriate loader to handle this file type.
| const to = from + node.text.length;
| startPos = to;
| return { ...node,
| from,
| to

@ ./node_modules/element-tiptap/lib/element-tiptap.esm.js 1:195-476 1:476-566
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8001 webpack/hot/dev-server ./src/main.js`

@yzyyna
Copy link

yzyyna commented Feb 8, 2023

同样的错误,如何解决的呢

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