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

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

Open
hammer-ai opened this issue Sep 16, 2024 · 1 comment

Comments

@hammer-ai
Copy link

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):

  • OS: MacOS
  • Browser: Electron

Additional context
Thank you!

@Bistard
Copy link

Bistard commented Sep 20, 2024

I had the exact same issue.

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