Open phanquanDHTB opened 1 year ago
Have you solved this problem? I got the same bug here.
BTW, there is no themes/default.less
file anywhere.
Now I solve this problem by degrade the version of antd
from 5.0.1
to 4.x.x
, and download @antd/icon
degrade the version of
antd
from5.0.1
to4.x.x
, and download@antd/icon
not good for me, it make new error:
Module build failed (from ./node_modules/postcss-loader/dist/cjs.js):
ValidationError: Invalid options object. PostCSS Loader has been initialized using an options object that does not match the API schema.
- options has an unknown property 'plugins'. These properties are valid:
object { postcssOptions?, execute?, sourceMap?, implementation? }
at validate (F:\BACH_KINH_XAY\232\cnpmnc\btl\vinastack-doctor-managerment\node_modules\schema-utils\dist\validate.js:191:11)
at Object.getOptions (F:\BACH_KINH_XAY\232\cnpmnc\btl\vinastack-doctor-managerment\node_modules\webpack\lib\NormalModule.js:646:19)
at Object.loader (F:\BACH_KINH_XAY\232\cnpmnc\btl\vinastack-doctor-managerment\node_modules\postcss-loader\dist\index.js:40:24)
Compiled with problems:X
ERROR in ./src/Home/less/antMotionStyle.less (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[9].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[9].use[2]!./node_modules/resolve-url-loader/index.js??ruleSet[1].rules[1].oneOf[9].use[3]!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[9].use[4]!./src/Home/less/antMotionStyle.less)
Module build failed (from ./node_modules/less-loader/dist/cjs.js):
@import "~antd/lib/style/themes/default.less"; ^ Less resolver error: '~antd/lib/style/themes/default.less' wasn't found. Tried - C:\Users\84979\Desktop\NextSolLandingPage\ns-landingpage\src\Home\less\~antd\lib\style\themes\default.less,npm://~antd\lib\style\themes\default.less,~antd\lib\style\themes\default.less
Webpack resolver error details: resolve '~antd/lib/style/themes/default.less' in 'C:\Users\84979\Desktop\NextSolLandingPage\ns-landingpage\src\Home\less' Parsed request is a module using description file: C:\Users\84979\Desktop\NextSolLandingPage\ns-landingpage\package.json (relative path: ./src/Home/less) Field 'browser' doesn't contain a valid alias configuration resolve as module C:\Users\84979\Desktop\NextSolLandingPage\ns-landingpage\src\Home\less\node_modules doesn't exist or is not a directory C:\Users\84979\Desktop\NextSolLandingPage\ns-landingpage\src\Home\node_modules doesn't exist or is not a directory C:\Users\84979\Desktop\NextSolLandingPage\ns-landingpage\src\node_modules doesn't exist or is not a directory looking for modules in C:\Users\84979\Desktop\NextSolLandingPage\ns-landingpage\node_modules C:\Users\84979\Desktop\NextSolLandingPage\ns-landingpage\node_modules\~antd doesn't exist C:\Users\84979\Desktop\NextSolLandingPage\node_modules doesn't exist or is not a directory C:\Users\84979\Desktop\node_modules doesn't exist or is not a directory looking for modules in C:\Users\84979\node_modules C:\Users\84979\node_modules\~antd doesn't exist C:\Users\node_modules doesn't exist or is not a directory C:\node_modules doesn't exist or is not a directory looking for modules in C:\Users\84979\Desktop\NextSolLandingPage\ns-landingpage\node_modules C:\Users\84979\Desktop\NextSolLandingPage\ns-landingpage\node_modules\~antd doesn't exist
Webpack resolver error missing: undefined