aguingand / tiptap-markdown

The Markdown extension for Tiptap editor.
MIT License
324 stars 25 forks source link

Uncaught TypeError: Cannot read properties of undefined (reading 'Extension') #78

Open hammer-ai opened 1 month ago

hammer-ai commented 1 month ago

Describe the bug When I run, I get:

index.js:58896 Uncaught TypeError: Cannot read properties of undefined (reading 'Extension')
    at eval (tiptap-markdown.umd.js:11:1)
    at eval (tiptap-markdown.umd.js:2:1)
    at eval (tiptap-markdown.umd.js:3:2)
    at ../../node_modules/tiptap-markdown/dist/tiptap-markdown.umd.js (index.js:58633:1)
    at __webpack_require__ (index.js:58893:33)
    at fn (index.js:59145:21)
    at eval (index.ts:13:1)
    at ./src/ui/novel/extensions/index.ts (index.js:12131:1)
    at __webpack_require__ (index.js:58893:33)
    at fn (index.js:59145:21)
eval @ tiptap-markdown.umd.js:11
eval @ tiptap-markdown.umd.js:2
eval @ tiptap-markdown.umd.js:3
../../node_modules/tiptap-markdown/dist/tiptap-markdown.umd.js @ index.js:58633
__webpack_require__ @ index.js:58893
fn @ index.js:59145
eval @ index.ts:13
./src/ui/novel/extensions/index.ts @ index.js:12131
__webpack_require__ @ index.js:58893
fn @ index.js:59145
eval @ extensions.ts:1
./src/ui/extensions.ts @ index.js:11999
__webpack_require__ @ index.js:58893
fn @ index.js:59145
eval @ story-editor.tsx:2
./src/ui/story-editor.tsx @ index.js:12284
__webpack_require__ @ index.js:58893
fn @ index.js:59145
eval @ write-story-page.tsx:7
./src/pages/write-story-page.tsx @ index.js:11955
__webpack_require__ @ index.js:58893
fn @ index.js:59145
eval @ app.tsx:23
./src/app.tsx @ index.js:11757
__webpack_require__ @ index.js:58893
fn @ index.js:59145
eval @ renderer.ts:31
./src/renderer.ts @ index.js:11966
__webpack_require__ @ index.js:58893
(anonymous) @ index.js:60076
(anonymous) @ index.js:60078
Screenshot 2024-09-16 at 10 23 09 PM

which is happening because core is undefined.

Screenshot 2024-09-16 at 10 23 36 PM

To Reproduce I get this when running the code from https://novel.sh/docs/introduction in an Electron app.

Expected behavior I would expect there to not be an exception.

Screenshots See above.

Desktop (please complete the following information):

Additional context Thank you!

Bistard commented 1 month ago

I had the exact same issue.