Closed anitagraham closed 4 years ago
I've generated a much simpler app, without all the baggage of the original one, and I am getting the same error.
Rails 6.0.0 (original problem on Rails 5.2.3) Ruby 2.6.3
The configuration looks no problem. I’ll check it in a few days.
Solution so far - in the simplified application is
# config/environments/development.rb
config.assets.check_precompiled_asset = false
and
# config/initializers/assets.rb
# Add the webpack output path to the assets path
Rails.application.config.assets.paths += [
Rails.root.join('public', 'dist' ).to_s
]
I'll close the issue, but if there is a better answer I'd be eager to see it.
I am trying to use Minipack but I am getting this error:
The asset mentioned is generated by webpack, and can be found in
public/dist/js
. However, I do have assets from the asset pipeline - notably from other gems. . Configuration information below. Does anything stick out as obviously wrong. In the meantime I have begun a clean new app to see if I can get it working there.thanks,
Anita
Bundle generation
Files are generated in
public/dist
and look fine.Bundle consumption
and finally in the view
and it is from here that the error is triggered.