10

I'm new to VueJs and implemented the cli-plugin-unit-jest for my project.Once i aded it to project it's show me below error

Failed to compile.

./node_modules/vue-router/dist/vue-router.esm.js
Module build failed: Error: ENOENT: no such file or directory, open '/media/abc/049A20AD9A209CE4/test/node_modules/vue-router/dist/vue-router.esm.js'

i have deleted node_module directory and re installed it.but still showing this error.

2 Answers 2

15

Just restart your server:

npm run serve
Sign up to request clarification or add additional context in comments.

2 Comments

Why will restarting the server fix this problem?
It certainly didn't for me.
3

Today I stumbled about the same problem with vue-router. You can fix this by following this steps:

cd node_modules/vue-router
npm install
npm run build

After that you have to restart

npm run serve

Source: https://router.vuejs.org/installation.html#dev-build

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.