?INFO ?Starting development server... ?ERROR ?Error: Cannot find module 'caniuse-lite/data/features/css-unicode-bidi' Require stack: - F:\xdclass\element-ui\element-ui\node_modules\autoprefixer\data\prefixes.js - F:\xdclass\element-ui\element-ui\node_modules\autoprefixer\lib\autoprefixer.js - F:\xdclass\element-ui\element-ui\node_modules\@vue\cli-service\lib\config\css.js - F:\xdclass\element-ui\element-ui\node_modules\@vue\cli-service\lib\Service.js - F:\xdclass\element-ui\element-ui\node_modules\@vue\cli-service\bin\vue-cli-service.js Error: Cannot find module 'caniuse-lite/data/features/css-unicode-bidi' Require stack: - F:\xdclass\element-ui\element-ui\node_modules\autoprefixer\data\prefixes.js - F:\xdclass\element-ui\element-ui\node_modules\autoprefixer\lib\autoprefixer.js - F:\xdclass\element-ui\element-ui\node_modules\@vue\cli-service\lib\config\css.js - F:\xdclass\element-ui\element-ui\node_modules\@vue\cli-service\lib\Service.js - F:\xdclass\element-ui\element-ui\node_modules\@vue\cli-service\bin\vue-cli-service.js ? ? at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) ? ? at Function.Module._load (node:internal/modules/cjs/loader:778:27) ? ? at Module.require (node:internal/modules/cjs/loader:1005:19) ? ? at require (node:internal/modules/cjs/helpers:102:18) ? ? at Object.<anonymous> (F:\xdclass\element-ui\element-ui\node_modules\autoprefixer\data\prefixes.js:663:12) ? ? at Module._compile (node:internal/modules/cjs/loader:1105:14) ? ? at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) ? ? at Module.load (node:internal/modules/cjs/loader:981:32) ? ? at Function.Module._load (node:internal/modules/cjs/loader:822:12) ? ? at Module.require (node:internal/modules/cjs/loader:1005:19) ? ? at require (node:internal/modules/cjs/helpers:102:18) ? ? at Object.<anonymous> (F:\xdclass\element-ui\element-ui\node_modules\autoprefixer\lib\autoprefixer.js:15:12) ? ? at Module._compile (node:internal/modules/cjs/loader:1105:14) ? ? at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) ? ? at Module.load (node:internal/modules/cjs/loader:981:32) ? ? at Function.Module._load (node:internal/modules/cjs/loader:822:12)
这种情况一般是caniuse-lite包的版本与vue版本不兼容,常见的是caniuse-lite的版本太高,需要重新安装一个低版本的包
npm i caniuse-lite@1.0.30001281
然后重新启动服务
|