Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm run serve gets hang on 98% while building

Tags:

npm

vuetify.js

I'm working on a project using vuetify. I was using "npm run serve" command to build and run a live server. it was working all good until all of sudden my project stopped building. every time i try running the command "npm run serve" it builds and hangs on 98% without throwing an error.

i tried npm install. npm build none of these fix the issue

in my terminal i run this command and the result is as follows:

npm run serve
[email protected] serve /Users/Desktop/rg21-vuetify/rep-vuetify vue-cli-service serve
INFO  Starting development server...
98% after emitting CopyPlugin

IT hangs on 98% and don't do anything after this, been stuck on this step for whole week if some one can help me.

like image 874
Olusyar Bareach Avatar asked Jun 14 '19 18:06

Olusyar Bareach


2 Answers

I have same problem stuck in 98%.

98% after emitting CopyPlugin

In my case, I recheck again my code, and I found my import path is invalid, something like :

import { myComponent } from ''

After fix the code, It works again.

like image 113
widi83 Avatar answered Sep 26 '22 17:09

widi83


I my case the problem is a empty require

getBackground() {
  return `url(${require("")})`;
},
like image 44
Sveen Avatar answered Sep 22 '22 17:09

Sveen