editablejs / editable

🌱 A collaborative rich-text editor framework that focuses on stability, controllability, extensibility, and performance. 一款强到离谱的富文本编辑器框架,专注于稳定性、可控性、扩展性和性能。
https://docs.editablejs.com
Apache License 2.0
1.78k stars 120 forks source link

A和B是两个单独的工程,其中A项目依赖了yjs库,B项目也依赖了yjs库,同时A又依赖了B,然后A项目跑起来后控制台会提示Yjs was already imported.大佬,这种问题有什么解决方案吗? #173

Open HAY0526 opened 3 months ago

HAY0526 commented 3 months ago

Problem A clear and concise description of what the problem is. (Eg. I'm always frustrated when [...])

Solution A clear and concise description of what you want to happen.

Alternatives A clear and concise description of any alternative solutions or features you've considered.

Context Add any other context about the problem here. (The fastest way to have an issue fixed is to create a pull request with working, tested code and we'll help merge it. Editable is solving a pretty complex problem, and we can't do it without active contributors, so thank you so much for your help!)

big-camel commented 3 months ago

把 yjs 设成 peerDependencies 最后只装一个yjs------------------------------------------------------------------ @.> 日 期:2024年03月26日 16:14:56 @.> @.>; @.> 主 题:Re: [editablejs/editable] A和B是两个单独的工程,其中A项目依赖了yjs库,B项目也依赖了yjs库,同时A又依赖了B,然后A项目跑起来后控制台会提示Yjs was already imported.大佬,这种问题有什么解决方案吗? (Issue #173)

Assigned #173 to @big-camel. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were assigned.Message ID: @.***>

HAY0526 commented 3 months ago

把 yjs 设成 peerDependencies 最后只装一个yjs------------------------------------------------------------------ @.> 日 期:2024年03月26日 16:14:56 @.> @.>; @.> 主 题:Re: [editablejs/editable] A和B是两个单独的工程,其中A项目依赖了yjs库,B项目也依赖了yjs库,同时A又依赖了B,然后A项目跑起来后控制台会提示Yjs was already imported.大佬,这种问题有什么解决方案吗? (Issue #173) Assigned #173 to @big-camel. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were assigned.Message ID: @.***>

设置A项目还是B项目呢?非常感谢感谢

big-camel commented 3 months ago

项目B------------------------------------------------------------------ @.> 日 期:2024年03月26日 16:54:41 @.> @.>; @.> 主 题:Re: [editablejs/editable] A和B是两个单独的工程,其中A项目依赖了yjs库,B项目也依赖了yjs库,同时A又依赖了B,然后A项目跑起来后控制台会提示Yjs was already imported.大佬,这种问题有什么解决方案吗? (Issue #173)

把 yjs 设成 peerDependencies 最后只装一个yjs------------------------------------------------------------------ @.> 日 期:2024年03月26日 16:14:56 @.> @.>; @.> 主 题:Re: [editablejs/editable] A和B是两个单独的工程,其中A项目依赖了yjs库,B项目也依赖了yjs库,同时A又依赖了B,然后A项目跑起来后控制台会提示Yjs was already imported.大佬,这种问题有什么解决方案吗? (Issue #173) Assigned #173 to @big-camel. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were assigned.Message ID: @.> 设置A项目还是B项目呢?非常感谢感谢 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.>