mdx-editor / editor

A rich text editor React component for markdown
https://mdxeditor.dev
MIT License
2.08k stars 160 forks source link

Circular dependencies #171

Open kimpixel opened 1 year ago

kimpixel commented 1 year ago

I got always "Circular dependencies"

(!) Circular dependencies node_modules/@mdxeditor/editor/dist/plugins/core/index.js -> node_modules/@mdxeditor/editor/dist/plugins/core/SharedHistoryPlugin.js -> node_modules/@mdxeditor/editor/dist/plugins/core/index.js node_modules/@mdxeditor/editor/dist/plugins/image/index.js -> node_modules/@mdxeditor/editor/dist/plugins/image/ImageNode.js -> node_modules/@mdxeditor/editor/dist/plugins/image/ImageEditor.js -> node_modules/@mdxeditor/editor/dist/plugins/image/index.js
node_modules/@mdxeditor/editor/dist/plugins/image/ImageNode.js -> node_modules/@mdxeditor/editor/dist/plugins/image/ImageEditor.js -> node_modules/@mdxeditor/editor/dist/plugins/image/ImageNode.js ...and 9 more

petyosi commented 1 year ago

I'll need a way to reproduce that. Haven't seen it in any of the stacks. Can you publish the setup in a sample repo?

kimpixel commented 1 year ago

try this out https://codesandbox.io/p/sandbox/proud-brook-y7sc8f?file=%2Frollup.config.js%3A8%2C24

petyosi commented 1 year ago

Thanks! This works, I think this can be solved, will look into it. Weird that the framework stacks don't complain.