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
First of all I'm upgrading rails from 4 to 6 version.
I have a separate fronted project that's based on webpack and as a result it produces js output file. Let's name it ui.js
This file is later taken by sprockets using //=require 'ui'
On my current stack (rails 4.2.11.3, sprockets 2.12.5, uglifier 4.1.20) everything was working fine, I was able to serve this file to client without any errors.
Part of the ui.js file that works in rails 4(before update):
Problems occurred when I updated sprockets from 2 to latest 4.2.1.
Rails/sprockets servers above code without sourceURL and sourceMappingURL thus I'm getting error in browser console and ui crashes.
Expected behavior
First of all I'm upgrading rails from 4 to 6 version.
I have a separate fronted project that's based on webpack and as a result it produces js output file. Let's name it ui.js
This file is later taken by sprockets using //=require 'ui'
On my current stack (rails 4.2.11.3, sprockets 2.12.5, uglifier 4.1.20) everything was working fine, I was able to serve this file to client without any errors.
Part of the ui.js file that works in rails 4(before update):
Actual behavior
Problems occurred when I updated sprockets from 2 to latest 4.2.1.
Rails/sprockets servers above code without sourceURL and sourceMappingURL thus I'm getting error in browser console and ui crashes.
So the missing part is:
What's interesting this problem happens only for this one module, others are served 'normally'
To resolve this issue, I was playing around with different options
Unfortunately none of above resolve this issue. Thus I'm seeking for some advice :)
System configuration
The text was updated successfully, but these errors were encountered: