palxiao / poster-design

一款漂亮且功能强大的在线海报设计器,图片编辑器,仿稿定设计,适用于多种场景:海报生成、电商产品图、文章长图、视频/公众号封面等。A beautiful online image designer, suitable for various scenarios like generate posters, making design easier!
https://design.palxp.cn
MIT License
3.78k stars 588 forks source link

Export "default" of module "src/stores/aiDesign/design/widget/index.ts" was reexported through module "src/stores/aiDesign/index.ts" #132

Closed iHTCboy closed 7 months ago

iHTCboy commented 7 months ago

大佬,放到现在项目中,正式打包报错:

 WARN  Export "default" of module "src/stores/aiDesign/design/widget/index.ts" was reexported through module "src/stores/aiDesign/index.ts" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.
Either change the import in "src/components/aiDesign/business/right-click-menu/RcMenu.vue?vue&type=script&setup=true&lang.ts" to point directly to the exporting module or reconfigure "output.manualChunks" to ensure these modules end up in the same chunk.

...
...

这个报错提示你在src/stores/aiDesign/design/widget/index.ts模块中导出的default,又通过src/stores/aiDesign/index.ts模块进行了再次导出,而这两个模块又是相互依赖的,这个有什么好的解决方法建议吗