You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using requirejs-rails but I think the issue is not there, but here.
I have my Javascript app in a /app/assets/javascripts/fn/* directory. Handlebars is loading, the require-handlebars-plugin is loading, and my hbs templates are loading. But then the moduleTree encounters a helper, and it blows up:
{ [Error: Error: ENOENT, no such file or directory '/var/rails/myapp/releases/20150528174835/tmp/requirejs/dst/templates/helpers/t.js'
In module tree:
some-file
some-dependency
hbs
But the file is not located at templates/helpers/t.js, it's located at fn/templates/helpers/t.js. I have even abstracted the direct call out; the JS file is including hbs-translation-helper, and in the requireJS config, that path is resolving to: "fn/templates/helpers/t". So why would it be looking in a top-level templates/ directory which isn't there?
I have tried setting:
hbs:
helpers: false
but no luck.
The text was updated successfully, but these errors were encountered:
I am using
requirejs-rails
but I think the issue is not there, but here.I have my Javascript app in a
/app/assets/javascripts/fn/*
directory. Handlebars is loading, therequire-handlebars-plugin
is loading, and myhbs
templates are loading. But then the moduleTree encounters a helper, and it blows up:But the file is not located at
templates/helpers/t.js
, it's located atfn/templates/helpers/t.js
. I have even abstracted the direct call out; the JS file is includinghbs-translation-helper
, and in the requireJS config, thatpath
is resolving to: "fn/templates/helpers/t". So why would it be looking in a top-leveltemplates/
directory which isn't there?I have tried setting:
but no luck.
The text was updated successfully, but these errors were encountered: