我有一个找不到蚂蚁设计图标模块的问题。
错误:
./src/icons.js
Module Error (from ./node_modules/eslint-loader/index.js):
error: Unable to resolve path to module '@ant-design/icons/lib/outline/MenuFoldOutline' (import/no-unresolved) at src/icons.js:3:8:
1 | export {
2 | default as MenuFoldOutline,
> 3 | } from '@ant-design/icons/lib/outline/MenuFoldOutline';
| ^
4 |
5 | export {
6 | default as MenuUnfoldOutline,
error: Missing file extension for "@ant-design/icons/lib/outline/MenuFoldOutline" (import/extensions) at src/icons.js:3:8:
我如何导出图标。
1 | export {
2 | default as MenuFoldOutline,
> 3 | } from '@ant-design/icons/lib/outline/MenuFoldOutline';
| ^
4 |
5 | export {
6 | default as MenuUnfoldOutline,
5 | export {
6 | default as MenuUnfoldOutline,
> 7 | } from '@ant-design/icons/lib/outline/MenuUnfoldOutline';
| ^
8 |
9 | export {
10 | default as DashboardOutline,
export {
default as MenuFoldOutline,
} from '@ant-design/icons/lib/outline/MenuFoldOutline';
export {
default as MenuUnfoldOutline,
} from '@ant-design/icons/lib/outline/MenuUnfoldOutline';
export {
default as DashboardOutline,
} from '@ant-design/icons/lib/outline/DashboardOutline';
export {
default as LogoutOutline,
} from '@ant-design/icons/lib/outline/LogoutOutline';
当我检入@ ant-design / icons / lib时,没有lib文件夹,我如何安装@ ant-design / icons / lib或其他方式来克服此问题。这件事只是在更新了ant-design-vue依赖关系后的两天内发生。