Replies: 1 comment
|
但因为你使用的是 pnpm ,默认情况是一个严格隔离的 node_modules ,所以没安装的依赖就是索引不到,不允许幽灵依赖,必须显示安装;只有用打平的包管理器如 yarn v1 / npm 才可以使用幽灵依赖。 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
按照官网文档安装了@umijs/plugins

pnpm add -D @umijs/plugins然后在.umirc.ts中也开启了antd配置
plugins: ['@umijs/plugins/dist/antd'],但是在引用后报错,无法找到 module 'antd'
请问这报错如何修复?
虽然报错,但本地启动项目也可以正常运行
我知道
pnpm i antd可以解决问题,但是我明明可以用umi中的插件,为什么还要单独再引入antd呢All reactions