element-tiptap
element-tiptap copied to clipboard
You may need an appropriate loader to handle this file type.
引入报错:
`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`
同样的错误,如何解决的呢