vue-cli: vue-cli npm run serve hits error "cache-loader --> failed to compile ---> this relative module was not found"
Version
3.5.5
Reproduction link
https://github.com/donnisnoni95/oesx
Environment info
Environment Info:
System:
OS: Linux 4.15 Linux Mint 19.1 (Tessa)
CPU: (4) x64 Intel(R) Core(TM) i3-4005U CPU @ 1.70GHz
Binaries:
Node: 10.15.3 - /usr/bin/node
Yarn: Not Found
npm: 6.4.1 - /usr/bin/npm
Browsers:
Chrome: 73.0.3683.103
Firefox: Not Found
npmGlobalPackages:
@vue/cli: 3.5.5
Steps to reproduce
change my function of my component
What is expected?
hot reloading
What is actually happening?
looking for removed files in cache and idk what to do to clear it / reset it (not browser cache)
This relative module was not found:
* ../../../../vue-temp/vue-editor-bridge in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/manage/mahasiswa/View.vue?vue&type=script&lang=js&
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 29 (2 by maintainers)
hey. i had this problem before, and it turned out to be a rogue
funcsnippet that adds an import statement that doesn’t resolve to anything. check your directory for something like this:import func from '../../vue-temp/vue-editor-bridge';hope this helps. worked for me
This error usually happens when I rename a component and forget to change the file name
I got this solved by using a @ instead of . in my import statement.
Here is the link to the article that gave me the solution.
Yeah well this import is defined in the View.vue file but it doesn’t exist.
https://github.com/donnisnoni95/oesx/blob/master/src/views/manage/mahasiswa/View.vue#L163
Hi
Thanks for filing this issue! Could you please provide a small reporduction in a repository, as is required by the issue guidelines, so we can debug this without trying to replicate this ourselves?`
That would be very helpful, thanks!
Hello everyone,
I had this problem before,
FIX(“”.vue):
I deleted this script “import { component } from ‘vue/types/umd’;”
@christina-immanuel check for an incorrectly written/referenced import statement