[Vuejs]-Vue router doesn't cannot find modules when it is place inside a folder

1👍

That’s because ./ looks in the folder where the file is located.
So the path it’s currently trying to find is C:/path/to/project/src/router/components/HelloWorld.Vue

Instead, change the path to ../components/HelloWorld.Vue and it should work.

👤Hiws

Leave a comment