Tje123
Tje123

Reputation: 751

Module build failed , vue-router.esm.js in Vue js

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.

Upvotes: 10

Views: 10913

Answers (2)

HeyDanny
HeyDanny

Reputation: 367

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

Upvotes: 3

ABHISHEK ANAND
ABHISHEK ANAND

Reputation: 159

Just restart your server:

npm run serve

Upvotes: 15

Related Questions