请帮帮我,我已经在这个问题上花了好几天?。
less-loader
[ error ] ./src/components/GlobalHeader/index.less
@import '~antd/es/style/themes/default.less';
^
Can't resolve 'antd/es/style/themes/default.less' in '/Users/vidy/www/acme-admin-ui1/src/components/GlobalHeader'
in /Users/vidy/www/acme-admin-ui1/src/components/GlobalHeader/index.less (line 1, column 0)
LessError {message: "Can't resolve 'antd/es/style/themes/default.less' …acme-admin-ui1/src/components/HeaderDropdown'", stack: "Error: Can't resolve 'antd/es/style/themes/default…de_modules/enhanced-resolve/lib/Resolver.js:285:5", type: "Syntax", filename: "/Users/vidy/www/acme-admin-ui1/src/components/HeaderDropdown/index.less", index: 0, …}
callExtract: undefined
callLine: NaN
column: 0
extract: (3) [undefined, "@import '~antd/es/style/themes/default.less';", ""]
filename: "/Users/vidy/www/acme-admin-ui1/src/components/HeaderDropdown/index.less"
hideStack: true
index: 0
line: 1
message: "↵↵@import '~antd/es/style/themes/default.less';↵^↵Can't resolve 'antd/es/style/themes/default.less' in '/Users/vidy/www/acme-admin-ui1/src/components/HeaderDropdown'↵ in /Users/vidy/www/acme-admin-ui1/src/components/HeaderDropdown/index.less (line 1, column 0)"
stack: "Error: Can't resolve 'antd/es/style/themes/default.less' in '/Users/vidy/www/acme-admin-ui1/src/components/HeaderDropdown'↵ at /Users/vidy/www/acme-admin-ui1/node_modules/enhanced-resolve/lib/Resolver.js:209:21↵ at /Users/vidy/www/acme-admin-ui1/node_modules/enhanced-resolve/lib/Resolver.js:285:5↵ at eval (eval at create (/Users/vidy/www/acme-admin-ui1/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)↵ at /Users/vidy/www/acme-admin-ui1/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:44:7↵ at /Users/vidy/www/acme-admin-ui1/node_modules/enhanced-resolve/lib/Resolver.js:285:5↵ at eval (eval at create (/Users/vidy/www/acme-admin-ui1/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)↵ at /Users/vidy/www/acme-admin-ui1/node_modules/enhanced-resolve/lib/Resolver.js:285:5↵ at eval (eval at create (/Users/vidy/www/acme-admin-ui1/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:27:1)↵ at /Users/vidy/www/acme-admin-ui1/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:67:43↵ at /Users/vidy/www/acme-admin-ui1/node_modules/enhanced-resolve/lib/Resolver.js:285:5↵ at eval (eval at create (/Users/vidy/www/acme-admin-ui1/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:657:1)↵ at /Users/vidy/www/acme-admin-ui1/node_modules/enhanced-resolve/lib/AliasPlugin.js:67:43↵ at /Users/vidy/www/acme-admin-ui1/node_modules/enhanced-resolve/lib/Resolver.js:285:5↵ at eval (eval at create (/Users/vidy/www/acme-admin-ui1/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)↵ at /Users/vidy/www/acme-admin-ui1/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:44:7↵ at /Users/vidy/www/acme-admin-ui1/node_modules/enhanced-resolve/lib/Resolver.js:285:5"
type: "Syntax"