veliovgroup / flow-router

🚦 Carefully extended flow-router for Meteor
https://packosphere.com/ostrio/flow-router-extra
BSD 3-Clause "New" or "Revised" License
202 stars 29 forks source link

Boilerplate templating example throwing "Cannot Find Module" exceptions #37

Closed davidrea closed 6 years ago

davidrea commented 6 years ago

I tried incorporating FlowRouter Extra into a simplistic SPA I'm working on and got "Cannot Find Module" exceptions for any .js or .html files I attempted to import in the /lib/routes.js file. To verify the issue wasn't introduced elsewhere in my app, I created a new empty Meteor app and populated only the files listed in the Templating guid, with contents exactly as-documented.

Even there, on running meteor, I get these errors in the console and a "Your app is crashing" message:

Error: Cannot find module '/imports/client/layout/layout.js' Error: Cannot find module '/imports/client/loading/loading.html'

I made sure babel-runtime is included in the project and installed; I'm at a loss for how to troubleshoot this further, as the files it's complaining about are definitely present in the filesystem at the paths specified.

Any guidance will be much appreciated; I don't have any hair left to pull out! ;-)

davidrea commented 6 years ago

I went through a did a more careful cleanroom test-out of the package, following the structure and import chain recommended in the Meteor Guide, and wasn't able to reproduce this error... Closing now, though I did find a mistake in the boilerplate (unrelated) for which I'll open a new issue.

mikhail-shishov commented 6 years ago

Hello @davidrea ,

Thanks for reporting on this issue! We're glad that you've solved it on your own.

Please, support this project by: