alchaplinsky / polymer-rails

Polymer and web components for Ruby on Rails
MIT License
286 stars 80 forks source link

web-animations-next-lite.min.js.map Not Found #39

Closed ghost closed 9 years ago

ghost commented 9 years ago

Hi, I am wondering if there are others that have seen this issue.

I am getting this message: GET http://localhost:3000/assets/web-animations-next-lite.min.js.map 404 (Not Found)

Thanks

ghost commented 9 years ago

The workaround is to do a manual install.

shawntoffel commented 9 years ago

Looked into it a bit.

This sounds related to polymer-core-rails or polymer-paper-rails. Both gems contain core-animation which imports the web-animations-next-lite.min.js file. I was able to reproduce this error in the Chrome debug console when running rails in development mode with the polymer-paper-rails gem (move issue to here?). The error shouldn't show up in production mode.

Source-map files are used by the browser to map between the minified js and original (useful when debugging).

The error is caused by this line at the bottom of the minified js:

//# sourceMappingURL=web-animations-next-lite.min.js.map

This is included inline with the rest of the components in application.html. As far as I know source-map support for rails (sprockets) is still a work in progress. Therefore, I believe the error will still exist if we simply include the map files in the gem assets. Removing the line is also less than ideal since the components are updated via bower.

ghost commented 9 years ago

Thank you for quick reply.

My workaround

It might be helpful for others to highlight this on Installation page until the issue has been resolved.

ghost commented 9 years ago

Closed as the issue isn't with polymer-rails.