Closed ysimonson closed 9 years ago
Update: the fix was to change the reference progress_bar.js
in the template to ./progress_bar.js
. But interestingly enough, it didn't work until mithril-coat's template watcher was restarted. The need to restart is a bug, but I'd argue that it's also a bug to not consider progress_bar.js
to be the same thing as ./progress_bar.js
.
Thanks for the update.
I agree that it's a bug that to not consider progress_bar.js
the same thing as ./progress_bar.js
. Will push out a fix soon.
This bug also sounds like error reporting needs to be a bit more refined for template errors.
I moved a template from one directory to another, and updated the reference to it in a coffeescript file that was using it. When I did so, I got this error:
task.js
is empty, so it didn't compile. The error on the second line should probably provide more context, because it wasn't clear that the error was actually coming from something else that was referencing the template - another template.When I updated that template, I got this this:
And looking at the source code of the template, it looks like it compiled fine. Cool. But my
task.js
is still empty. I tried re-saving the associated coffeescript file to see if it just missed the update, but I'm still getting an error:This is strange because there is indeed a
progress_bar.js
at that path:So it appears the errors are two-fold:
1) mithril-coat erroneously reporting that it successfully compiled a file, when it didn't. 2) Some sort of bug in the dependency resolvers, such that the templates can compile successfully, but any coffeescript files referencing those successfully compiling templates fail to compile themselves.