项目使用qiankun插件,分别有app1和app2,根目录使用yarn workspaces来管理node_modules #7179
Unanswered
imscorpioer
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
启动app1或者app2的时候,报找不到模块的错误,例如:@ant-design/icons ,@ant-design/pro-layout/es/PageLoading找不到,实际上在根目录已经安装了,这个问题要怎么处理,贴几个错误如下:
Module build failed (from ../node_modules/@umijs/deps/compiled/babel-loader/index.js):
AssertionError [ERR_ASSERTION]: [MFSU] package.json not found for dep @ant-design/pro-layout/es/PageLoading which is imported from @/.umi/core/routes.ts
Module build failed (from ../node_modules/@umijs/deps/compiled/babel-loader/index.js):
AssertionError [ERR_ASSERTION]: [MFSU] package.json not found for dep moment/locale/zh-tw which is imported from @/.umi/plugin-locale/locale.tsx
Module build failed (from ../node_modules/@umijs/deps/compiled/babel-loader/index.js):
AssertionError [ERR_ASSERTION]: [MFSU] package.json not found for dep @ant-design/icons/es/icons/TableOutlined which is imported from @/.umi/plugin-layout/icons.ts
Beta Was this translation helpful? Give feedback.
All reactions