Akryum / meteor-vue2-example

Meteor & Vue 2.0 example
44 stars 22 forks source link

Cannot find module #7

Open EMHmark7 opened 7 years ago

EMHmark7 commented 7 years ago

Hi, I open the project today and I get Cannot find module './Chat.vue'; in the App.vue. But the file is in the same folder as App, I did no changes at that level.. Have you ever got this behaviour?

Thanks Marc

chenmoran commented 7 years ago

Try '/imports/ui/Chat.vue‘

EMHmark7 commented 7 years ago

I already tried. Still does not work. And if normal: if I doimport Chat from '/imports/ui/Chat.vue'; it gives Cannot find module './Chat.vue' if I do import Chat from '../imports/ui/Chat.vue'; it gives Cannot find module '../imports/ui/Chat.vue'

When did this bug appear to you? To me, only Yesterday.

EMHmark7 commented 7 years ago

But weardly, when I do change the file name in both the code and on disk, it does not reflect in the console, even if I restart the server and refresh browser: import Chat from './Chat2.vue'; it gives Uncaught Error: Cannot find module './Chat.vue'

chenmoran commented 7 years ago

Try download this project again and running meteor update --release 1.4.2.4-rc.1 .My project is running.

Akryum commented 7 years ago

Did you try with Meteor 1.4.3.1?

DamienFriot commented 7 years ago

I have the same problem in my project with Meteor 1.5.2.1: if I change the name of a file, the console get stuck on the old name. Is there a necessity to name all components when using meteor-component?