chintan's avatar
Level 13

Change in node_modules file does not reflect the change in UI

Hey guys,

Maybe I am doing it wrong. I have modified a .vue template in node_modules folder. Now when I run npm run watch or npm run dev it doesn't get reflected in UI.

Any idea whats wrong ?

thanks

Chintan

0 likes
2 replies
spekkionu's avatar

You should not be modifying files in your node_modules folder. These are vendor dependencies much like the vendor folder is for php.

The watcher (assuming the default laravel configuration) keeps an eye on files in your resources directory which is where your javascript should go (much like the app folder for your php code).

1 like
chintan's avatar
Level 13

I agree thats a bad practice. However, is there any way I can ask npm to rebuid all the files in the node_modules folder. I did npm rebuild but still the output is same.

Thanks.

Please or to participate in this conversation.