-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
vue-loader not installed correctly #1419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Probably related to / caused by this: |
Should be fixed with |
I was getting the same thing from a cloned repo (cloned from my main computer where I haven't had any issues). Tried the above |
λ yarn serve
yarn run v1.12.3
$ vue-cli-service serve
INFO Starting development server...
94% after seal
ERROR Failed to compile with 1 errors 15:02:54
error in ./src/main.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
ReferenceError: [BABEL] F:\qianduan_dir\00program\web-vue-cli3\todo-\src\main.js: Unknown option: .polyfills. Check out https://babeljs.io/docs/en/babel-core/#options f
or more information about options.
at throwUnknownError (F:\qianduan_dir\00program\web-vue-cli3\todo-\node_modules\@babel\core\lib\config\validation\options.js:123:11)
at Object.keys.forEach.key (F:\qianduan_dir\00program\web-vue-cli3\todo-\node_modules\@babel\core\lib\config\validation\options.js:107:5)
at Array.forEach (<anonymous>)
at validateNested (F:\qianduan_dir\00program\web-vue-cli3\todo-\node_modules\@babel\core\lib\config\validation\options.js:83:21)
at validate (F:\qianduan_dir\00program\web-vue-cli3\todo-\node_modules\@babel\core\lib\config\validation\options.js:74:10)
at instantiatePreset (F:\qianduan_dir\00program\web-vue-cli3\todo-\node_modules\@babel\core\lib\config\full.js:244:36)
at cachedFunction (F:\qianduan_dir\00program\web-vue-cli3\todo-\node_modules\@babel\core\lib\config\caching.js:33:19)
at loadPresetDescriptor (F:\qianduan_dir\00program\web-vue-cli3\todo-\node_modules\@babel\core\lib\config\full.js:235:45)
at config.presets.reduce (F:\qianduan_dir\00program\web-vue-cli3\todo-\node_modules\@babel\core\lib\config\full.js:77:21)
at Array.reduce (<anonymous>)
at recurseDescriptors (F:\qianduan_dir\00program\web-vue-cli3\todo-\node_modules\@babel\core\lib\config\full.js:74:38)
at loadFullConfig (F:\qianduan_dir\00program\web-vue-cli3\todo-\node_modules\@babel\core\lib\config\full.js:108:6)
at process.nextTick (F:\qianduan_dir\00program\web-vue-cli3\todo-\node_modules\@babel\core\lib\transform.js:28:33)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
@ multi (webpack)-dev-server/client?http://192.168.2.103:8080/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
|
ERROR in ./resources/js/views/admin/main/index.vue?vue&type=template&id=fa8fd28a&scoped=true& (./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/admin/main/index.vue?vue&type=template&id=fa8fd28a&scoped=true&) |
sameish here: "export 'default' (imported as 'mod') was not found in '-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DashCard.vue?vue&type=script&lang=js&' |
I am also having the same issue, but with a vue project on glitch.com using pnpm ERROR Failed to compile with 1 errors3:57:00 AM
This dependency was not found:
* -!../../rbd/pnpm-volume/b2c7ff97-dc14-4295-b604-0cd2e497217b/node_modules/.registry.npmjs.org/cache-loader/1.2.5/[email protected]/node_modules/cache-loader/dist/cjs.js??ref--12-0!../../rbd/pnpm-volume/b2c7ff97-dc14-4295-b604-0cd2e497217b/node_modules/.registry.npmjs.org/babel-loader/8.0.5/@babel![email protected]/node_modules/babel-loader/lib/index.js!../../rbd/pnpm-volume/b2c7ff97-dc14-4295-b604-0cd2e497217b/node_modules/.registry.npmjs.org/cache-loader/1.2.5/[email protected]/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../rbd/pnpm-volume/b2c7ff97-dc14-4295-b604-0cd2e497217b/node_modules/.registry.npmjs.org/vue-loader/15.5.1/[email protected][email protected]/node_modules/vue-loader/lib/index.js??vue-loader-options!./app.vue?vue&type=script&lang=js& in ./src/app.vue?vue&type=script&lang=js&
To install it, you can run: npm install --save -!../../rbd/pnpm-volume/b2c7ff97-dc14-4295-b604-0cd2e497217b/node_modules/.registry.npmjs.org/cache-loader/1.2.5/[email protected]/node_modules/cache-loader/dist/cjs.js??ref--12-0!../../rbd/pnpm-volume/b2c7ff97-dc14-4295-b604-0cd2e497217b/node_modules/.registry.npmjs.org/babel-loader/8.0.5/@babel![email protected]/node_modules/babel-loader/lib/index.js!../../rbd/pnpm-volume/b2c7ff97-dc14-4295-b604-0cd2e497217b/node_modules/.registry.npmjs.org/cache-loader/1.2.5/[email protected]/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../rbd/pnpm-volume/b2c7ff97-dc14-4295-b604-0cd2e497217b/node_modules/.registry.npmjs.org/vue-loader/15.5.1/[email protected][email protected]/node_modules/vue-loader/lib/index.js??vue-loader-options!./app.vue?vue&type=script&lang=js& |
Having the same problem,
EDIT: Inside my App.vue I had written import ""; this is what was causing my errors, removed the line and all is working again. Feel like this is a beginners mistake... |
I have the same issue.
|
same here after deleting
|
any fix to this? Having the same issue |
It clearly says In my
(and of course, install it with ... which resolved the first issue for me, but now I got another error saying:
which seems to have to do with that VueLoaderPlugin, and with the VueTemplateCompiler if I got it right? EDIT: Copied from another thread Spent a whole day on this. In my case, my webpack config used
Other two errors, namely
happened for the same general reason and mistake: I had declared (ok I did not but I copied a config which did) a module (and that's what was mentioned by the error, a module could not be found!), which I did not install, in this case: installed it via Basically, you have to watch out that all modules which are used by your webpack config files are also installed in node_modules. E.g. my webpack config which caused the above problems looked like this:
see the url-loader for image files? You can basically apply that rule for any module which is declared in the config but not appearing in |
This relative module was not found:
Can someone tell me the solution? complete newbie in vue. |
This error also occurs if node-sass module is not found. Here's the solution: sudo npm install --save-dev --unsafe-perm node-sass Enjoy! |
Anyone willing to help. I tried creating my first Vue app and I got this error.
|
I have the same error output as @Dalexz4 but this is occurring when I try to use a newly installed node package through yarn, built through webpack and running on a Docker container.
Update: |
@ ./node_modules/vue-style-loader??ref--9-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--9-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Home.vue?vue&type=style&index=0&id=8dc7cce2&scoped=true&lang=scss& 4:14-459 15:3-20:5 16:22-467 |
make sure you're not missing out your pacakge.lock.json |
I am getting same error. |
I get below error when I tab the ERROR Failed to compile with 1 error 上午8:04:45 error in ./node_modules/vue-cli-plugin-vusion/scenes/doc/components/common/u-h2-tabs.vue/module.css?vue&type=style&index=0&module=true&lang=css& Syntax Error: Error: Can't resolve 'i-material-design.vue/assets/filled/close.svg' in 'F:\PreWorkThings\lowCode\CodeWaveAssetCompetition2024\heatmap_mayuo\node_modules\vue-cli-plugin-vusion\scenes\doc\components\common\u-h2-tabs.vue' @ ./node_modules/vue-style-loader??ref--7-oneOf-0-0!./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-0-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/icon-font-loader!./node_modules/postcss-loader/src??ref--7-oneOf-0-3!./node_modules/vue-cli-plugin-vusion/webpack/loaders/module-class-priority-loader!./node_modules/ifdef-loader/ifdef-loader.js??ref--7-oneOf-0-5!./node_modules/vue-cli-plugin-vusion/scenes/doc/components/common/u-h2-tabs.vue/module.css?vue&type=style&index=0&module=true&lang=css& 4:14-445 15:3-20:5 16:22-453 Error from chokidar (F:): Error: EBUSY: resource busy or locked, lstat 'F:\DumpStack.log.tmp' |
Compiled with problems: Good morning |
Version
3.0.0-beta.15
Reproduction link
https://github.com./YogliB/vue-cli_test
Steps to reproduce
What is expected?
The app will be compiled/transpiled and served.
What is actually happening?
The text was updated successfully, but these errors were encountered: