Closed Madd0g closed 6 months ago
Yeah, I can make it an optional dep. Working on this asap
X [ERROR] Could not resolve "yjs"
node_modules/lexical-vue/dist/index.js:1224:28:
1224 │ import { UndoManager } from "yjs";
╵ ~~~~~
You can mark the path "yjs" as external to exclude it from the bundle, which will
remove this error and leave the unresolved path in the bundle.
I believe I tried that, but it's been a while so I don't remember what the problem was when I tried it.
Since I'm getting warning messages in the console from yjs itself, that means something "initiates" it and it's not my code - so I think that's what happened, even if you make it external, it's still trying to use it and blows up.
It should now be optional. Tested it on a fresh project with Vite. Feel free to reopen!
I'm not using that plugin and I can't start my app without installing
yjs
.After installing it, I see errors like this:
is there a way to not load it if I don't need it?
Thanks