meteor-vue2-example icon indicating copy to clipboard operation
meteor-vue2-example copied to clipboard

Cannot find module

Open EMHmark7 opened this issue 8 years ago • 6 comments

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

EMHmark7 avatar Feb 15 '17 04:02 EMHmark7

Try '/imports/ui/Chat.vue‘

chenmoran avatar Feb 15 '17 09:02 chenmoran

I already tried. Still does not work. And if normal: if I do import 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 avatar Feb 15 '17 14:02 EMHmark7

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'

EMHmark7 avatar Feb 15 '17 14:02 EMHmark7

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

chenmoran avatar Feb 16 '17 09:02 chenmoran

Did you try with Meteor 1.4.3.1?

Akryum avatar Feb 16 '17 09:02 Akryum

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?

DamienFriot avatar Sep 30 '17 16:09 DamienFriot