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

Svelte 5 - 'Element is not defined' #2719

Closed
vexkiddy opened this issue May 15, 2024 · 1 comment
Closed

Svelte 5 - 'Element is not defined' #2719

vexkiddy opened this issue May 15, 2024 · 1 comment
Labels

Comments

@vexkiddy
Copy link

Describe a bug.

Steps to reproduce:

  1. Create a project using svelte 5
  2. Install editorjs via npm
  3. Import editorjs into a component
  4. See 'Element is not defined' error that appears on the page

Expected behavior:
To not see the error :D

Screenshots:
CleanShot 2024-05-15 at 22 15 15@2x

Device, Browser, OS:
System:
OS: macOS 14.2.1
CPU: (12) arm64 Apple M2 Max
Memory: 232.52 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 21.6.1 - /usr/local/bin/node
Yarn: 1.22.17 - /usr/local/bin/yarn
npm: 10.2.4 - /usr/local/bin/npm
Browsers:
Brave Browser: 124.1.65.130
Chrome: 124.0.6367.207
Safari: 17.2.1

Editor.js version:
latest

Plugins you use with their versions:
none as yet as i can't get the editor to load in my project

@vexkiddy vexkiddy added the bug label May 15, 2024
@vexkiddy
Copy link
Author

Fixed this by disabling SSR for this particular route.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant