Closed kyv closed 3 years ago
I think you should file this against Meteor itself.
cc @benjamn
Does it help at all if you rm -rf .meteor/local/plugin-cache/blaze-html-templates
? Not suggesting that as a solution, just a diagnostic question.
Same error here
Sorry for my english I get this random error when I create e new template:
Uncaught Error: Cannot find module './template.xxxxx.js'
I got this error last week, I fixed and I don't take care any more. But I'm teaching meteor to a couple of developers and one of they got this error following the todos tutorial. I pull de repo and I don't get the error, I ask to him to follow this solution:
meteor remove blaze-html-templates
meteor add blaze-html-templates
And everything fixed like a charm.
My Meteor version: 1.4.2
In this case I create a new template in a file named table.js and I try to imported
import './table.js'
// If I remove this line the error disapears
accounts-facebook 1.0.11 Login service for Facebook accounts
accounts-google 1.0.11 Login service for Google accounts
accounts-password 1.3.1* Password support for accounts
ahref:flow-router-breadcrumb 1.1.0 This package will provide a easy way to add a breadcrumb to FlowRouter with enough f...
alanning:roles 1.2.15 Authorization package for Meteor
aldeed:autoform 5.8.1+ Easily create forms with automatic insert and update, and automatic reactive validat...
aldeed:autoform-select2 2.0.3+ Custom select2 input type for AutoForm
aldeed:collection2 2.10.0 Automatic validation of insert and update operations on the client and server.
aldeed:simple-schema 1.5.3 A simple schema validation object with reactivity. Used by collection2 and autoform.
aldeed:template-extension 4.0.0 Adds template features currently missing from the templating package
arillo:flow-router-helpers 0.5.2 Template helpers for flow-router
blaze-html-templates 1.0.5 Compile HTML templates into reactive UI with Meteor Blaze
cesarve:autoform-daterangepicker 0.0.1+ Rage date picker for meteor autoform
cesarve:autoform-raty 0.0.2+ AutoForm input type for Raty, a jQuery star rating form control
cesarve:bs-modal-prompt 0.1.0+ Show prompts in a bootstrap modal.
dispatch:login-token 0.1.2+ Log the user in if they have the correct single-use token in the URL
ecmascript 0.5.9 Compiler plugin that supports ES2015+ in all .js files
email 1.1.18 Send email messages
es5-shim 4.6.15 Shims and polyfills to improve ECMAScript 5 support
fortawesome:fontawesome 4.7.0 Font Awesome (official): 500+ scalable vector icons, customizable via CSS, Retina fr...
http 1.2.10 Make HTTP calls to remote servers
jquery 1.11.10 Manipulate the DOM using CSS selectors
kadira:blaze-layout 2.3.0 Layout Manager for Blaze (works well with FlowRouter)
kadira:debug 3.2.2 Full Stack Debugging Solution for Meteor
kadira:flow-router 2.12.1 Carefully Designed Client Side Router for Meteor
less 2.7.6* Leaner CSS language
lukemadera:autoform-googleplace 1.0.7+ Google Places Autocomplete input (without map). Returns an object with formatted add...
matb33:collection-hooks 0.8.4 Extends Mongo.Collection with before/after hooks for insert/update/remove/find/findOne
meteor-base 1.0.4 Packages that every Meteor app needs
meteorhacks:kadira 2.30.2 Performance Monitoring for Meteor
mobile-experience 1.0.4 Packages for a great mobile user experience
mongo 1.1.14 Adaptor for using MongoDB and Minimongo over DDP
natestrauser:select2 4.0.3 Select2 is a jQuery based replacement for select boxes.
ostrio:autoform-files 1.0.7+ File upload for AutoForm using ostrio:files
ostrio:files 1.7.5 Upload files via DDP, HTTP and WebRTC/DC. To server FS, AWS, GridFS, DropBox or Goog...
percolate:migrations 0.9.8 Define and run db migrations.
practicalmeteor:mocha 2.4.5_6 Write package tests with mocha and run them in the browser or from the command lin...
random 1.0.10 Random number generator and utilities
session 1.1.7 Session variable
shell-server 0.2.1 Server-side component of the `meteor shell` command.
standard-minifier-css 1.3.2 Standard css minifier used with Meteor apps by default.
standard-minifier-js 1.2.1 Standard javascript minifiers used with Meteor apps by default.
standard-minifiers 1.0.6 Standard minifiers used with Meteor apps by default.
tmeasday:publish-counts 0.8.0 Publish the count of a cursor, in real time
tracker 1.1.1 Dependency tracker to allow reactive callbacks
u2622:persistent-session 0.4.4 Persistently store Session data on the client
useraccounts:bootstrap 1.14.2 Accounts Templates styled for Twitter Bootstrap.
useraccounts:flow-routing 1.14.2 UserAccounts package providing routes configuration capability via kadira:flow-router.
webtempest:animate 0.1.9 Easily perform CSS animations and transitions in Meteor
zeroasterisk:auditlog 0.0.3+ Simple, generic, extensible audit logging on collection insert, update, upsert, remove
I have to say when I copy this list I already update meteor. Then I really don't now was the original version of blaze-html-templates. Because my only package updated was
blaze-html-templates added, version 1.0.5
A correction: sometimes restarting meteor resolves the issue (ctrl-c && meteor run).
With that in mind it is dificult to test the above command, given that remove the cache does not trigger a rebuild. I'm referning to this:
rm -rf .meteor/local/plugin-cache/blaze-html-templates/
I'm closing this issue because it's too old.
If you think this issue is still relevant please open a new one.
Why? We need to pay attention to all the open items so we should keep opened only items where people are involved.
I have some html, js and css file (stylus in the case), and I move them from their original location to a new folder, I recieve module not found error ('cannot find module template.x.js' in chromium where 'x' is the js file that got moved).
I am very carefull changing references to the given files from any other file which imports it. Also, change the routes of files imported from the moved files. The error continues. I try to restart meteor (ctrl-c) && meteor run. The error continues. Finally I remove blaze-html-templates and add it again and the error is gone and my application is back.
I went through this procedure with serveral files, and the results are consistent. Meteor release: METEOR@1.4.2