You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After some research, I found this answer, which suggests that const editor = new EdgelessEditor() might be the issue. So, I modified main.js as follows:
We have recently experienced a large change on how to define the custom element.
Previously, we used Lit's builtin decorator but it turns out to be not good for tree-shaking.
So we separate the define the custom element to a different function, which is side effects in functional programming.
In this case, I would recommend you to run the side effects manually:
Description:
I'm encountering an error when trying to run the
EdgelessEditor
component using version 0.17.10.Safari:
Firefox and Chrome:
Code:
After some research, I found this answer, which suggests that
const editor = new EdgelessEditor()
might be the issue. So, I modifiedmain.js
as follows:However, I continued to get the same error until I commented out everything inside the
doc.load
callback.Could you provide assistance with this issue?
I'm using
node 20.17
yarn 1.22
@blocksuite/blocks 0.17.10
@blocksuite/presets 0.17.10
@blocksuite/store 0.17.10
vite ^5.4.6
yjs ^13.6.19
The text was updated successfully, but these errors were encountered: