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
The editor doesn't update between instances. (Typing something in one editor will not show up in the other editor)
"Yjs was already imported. This breaks constructor checks and will lead to issues! - yjs/yjs#438"
The text was updated successfully, but these errors were encountered:
Add the following line to your webpack config in next.config.js, so all imports point to the same version of yjs webpack: ( config, { buildId, dev, isServer, defaultLoaders, nextRuntime, webpack } ) => { config.resolve.alias.yjs = path.resolve("node_modules/yjs/dist/yjs.cjs"); return config; },
When importing yjs, use the cjs version const Y = require("yjs");
Add the following line to your webpack config in next.config.js, so all imports point to the same version of yjs webpack: ( config, { buildId, dev, isServer, defaultLoaders, nextRuntime, webpack } ) => { config.resolve.alias.yjs = path.resolve("node_modules/yjs/dist/yjs.cjs"); return config; },
When importing yjs, use the cjs version const Y = require("yjs");
Lexical version: 0.4.1
Steps To Reproduce
Link to code example: https://lexical.dev/docs/collaboration/react
The current behavior
Collaboration works as intended
The expected behavior
The editor doesn't update between instances. (Typing something in one editor will not show up in the other editor)
"Yjs was already imported. This breaks constructor checks and will lead to issues! - yjs/yjs#438"
The text was updated successfully, but these errors were encountered: