-
Notifications
You must be signed in to change notification settings - Fork 755
Pre-compilation for es6 breaks with version 1.4.2 #395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Maybe so. How do you set up es6 compilation? If you show me how you do that, I can add a test & try to get it going again! |
Well 😄, This is kinda how my Gemfile looks like:
So my
The filename of video, is in this case: |
I think this is the breaking change: #385 But I'm not sure exactly how it broke things. In your case, do you get an error message? If so, what is the message and what is the stack trace? Or does it simply fail to transform? |
Yes I get an error message:
And the infamous stacktrace:
|
So I think it just breaks because of the registered file extensions 😄 |
It seems that the new Sprockets mime type registry no longer matches these chained extensions and you need to explicitly list all the possible variations. From the upgrade doc (I missed this bit):
E.g. it used to be:
And now it's:
Note how I think it should be enough to add Sorry for messing it up for the ES6 guys. |
Ah right, great find 👍 |
BTW it seems version |
😬 sorry! |
Upgraded to react-rails gem version 1.4.2 this morning. This unfortunately breaks pre-compilation. es6/jsx files aren't picked up anymore (1.4.1 works fine btw).
I suspect this is due changes made in the Rails Engine?
The text was updated successfully, but these errors were encountered: