rails / propshaft

Deliver assets for Rails
MIT License
913 stars 97 forks source link

Source Map loading errors introduced in 0.9 #193

Closed klevo closed 5 months ago

klevo commented 5 months ago

After upgrading to v0.9, in Safari one can observe "Source Map loading errors" immediately. In other browsers, like Chrome, after going to Sources and selecting for example stimulus.min-xxx.js there is a source map loading error as well.

This can be easily replicated with a new vanilla Rails app:

rails new --asset-pipeline=propshaft rails-with-propshaft
cd rails-with-propshaft
bin/setup
rails g scaffold Message title:string
rails db:migrate
bin/dev

Then navigate to http://localhost:3000/messages and open up the JS console.

safari error chrome error
theodorton commented 5 months ago

Could you test with your project to confirm that the issue is resolved in #194?

gem 'propshaft', github: 'rails/propshaft', branch: 'fix-source-map-404'
klevo commented 5 months ago

Great job @theodorton - I can confirm that fixed it 🎉

klevo commented 5 months ago

I see the fix has been merged. I'm closing the issue. Thanks!