vue-cli npm run serve hits error "cache-loader --> failed to compile ---> this relative module was not found"
See original GitHub issueVersion
3.2.3
Reproduction link
https://new-issue.vuejs.org/?repo=vuejs/vue-cli
Environment info
Usage: vue <command> [options]
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
create [options] <app-name> create a new project powered by vue-cli-service
add [options] <plugin> [pluginOptions] install a plugin and invoke its generator in an already created project
invoke [options] <plugin> [pluginOptions] invoke the generator of a plugin in an already created project
inspect [options] [paths...] inspect the webpack config in a project with vue-cli-service
serve [options] [entry] serve a .js or .vue file in development mode with zero config
build [options] [entry] build a .js or .vue file in production mode with zero config
ui [options] start and open the vue-cli ui
init [options] <template> <app-name> generate a project from a remote template (legacy API, requires @vue/cli-init)
config [options] [value] inspect and modify the config
upgrade [semverLevel] upgrade vue cli service / plugins (default semverLevel: minor)
Run vue <command> --help for detailed usage of given command.
Steps to reproduce
vue create my-app delete …/assets/logo.svg
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)
- …/assets/logo.svg in ./node_modules/cache-loader/dist/cjs.js?{“cacheDirectory”:“node_modules/.cache/vue-loader”,“cacheIdentifier”:“6baa54c6-vue-loader-template”}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vuetify-loader/lib/loader.js!./node_modules/cache-loader/dist/cjs.js??ref–0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/HelloWorld.vue?vue&type=template&id=469af010&
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
vue-cli npm run serve hits error "cache-loader --> failed to ...
Hi, I'm facing this same error on compile, when I try to import mutations in my vue file. This relative module was not...
Read more >How to fix npm run serve command bringing Relative Module ...
I am trying to set up the development server to serve the front end by running the "npm run serve" command in the...
Read more >Vue.JS Error: This relative module was not found
I was making an update to a small Vue.JS side project when I encountered a build error: This relative module was not found...
Read more >This relative module was not found: npm run watch - Laracasts
I am having some problem in my code. When I do npm run watch it throws errors below: This relative module was not...
Read more >short sermon on church workers meeting - Aqvarius GmbH
But when i save why npm run watch working, gives me an error about "This relative module was not found " This will...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
What I did was the following:
vue add vuetify
remove all references to HelloWorld.vue from App.vue
deleted the component and the logo.svg while npm run serve was going.
I have experienced this error as well if I rename and move a component (e.g. move into a sub directory).
Closing for inactivity.