Closed declan closed 9 years ago
Just to elaborate on requirejs.yml
, it initially looked like this and was working fine in development:
modules:
- name: 'routes/home/index'
- name: 'routes/about/index'
If I change it to
modules:
- name: 'ohana/routes/home/index'
Then that works fine, as long as routes/home/index.js
does not require any other modules. If it does, then I get the same crash as above.
@declan Sorry for the belated reply. I read over your bug report, and it seems like you're still requiring routes/home/index
as a dependency from some module when the module in question has already moved to the new location app/assets/javascripts/ohana/routes/home/index.js
. Is that the case? If it is, you'll see the error above and will have to update dependency declarations accordingly. If it isn't, I'll reopen.
I'm working on a rails engine which uses requirejs-rails to handle its javascript assets. If I mount the engine in an application, things work fine in development but crash when I try to precompile assets:
This seems like a path issue? If I manually copy all the javascript files from the engine into
app/assets/javascripts
then things work fine.I've tried solving the problem by prefixing the paths in
requirejs.yml
with the engine name, but if a file inside the engine requires another file inside the engine, the compilation crashes with the same error as above.