vue require reports node_modules/babel-loader/lib error
This error is reported in the vue project.
…/…/assets/images/11.png in ./node_modules/cache-loader/dist/cjs.js??ref–12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref–0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/HouseManage/EmergencyPlan.vue?vue&type=script&lang=js&
Most of them are due to problems with the path of the file.
A good check can check out
Read More:
- [Solved] internal/modules/cjs/loader.js:892 ^Error: Cannot find module ‘C:\Users\LX\Desktop\Node_DEMO\a
- [Solved] webpack.config.js configuration encountered Error: Cannot find module’@babel/core’&&Cannot find module’@babel/plugin-transform-react-jsx’
- [Solved] Using `babel-preset-react-app` requires that you specify `NODE_ENV` or `BABEL_ENV` environment variables. Valid values are “development”, “test”, and “production”. Instead, received: undefined.
- Taro Install Error: permission denied, symlink ‘../lib/node_modules/@tarojs/cli/bin/taro‘ -> ‘/usr/local/bin/tar
- Vue Cli error: vuecliYou may need an additional loader to handle
- [Webpack Update] vue-loader Error: Compiled with problems : ERRORModule notfound: Error:Can‘ t resolve vue in
- How to Fix Node SASS Error in Vue + webpack project after nodejs upgrade
- Yaml is installed, and the error YAMLLoadWarning is reported as soon as the code runs: calling yaml.load() without Loader=… is deprecated, as the default Loader is unsafe.
- NPM install error: Cannot find module ‘D:\zip\node_modules\npm\bin\npm-cli.js‘
- [Solved] Electron Error: Error: Electron failed to install correctly, please delete node_modules/electron and try
- Error starting vue project these dependencies were not found:create in ./src/router/modules/md.js
- Angular6 rxjs start error in node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ‘;’ expected.
- Module not found: Error: Can‘t resolve ‘sass-loader‘ in…
- Module not found: Error: Can‘t resolve ‘sass-loader‘
- [Solved] npm Error: Error: Cannot find module ‘postcss-loader‘
- Introduce wangeditor5 to run an error: You may need an appropriate loader to handle this file type (es6 compatibility issue)
- [Solved] Vue cli version is @ Vue/cli 4.5.13, and sass is used to report an error
- [Solved] npm install sass@~1.32 sass-loader deepmerge -D Install Error
- [Solved] Electron Error: ReferenceError: require is not defined