We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
So when I require this file 'jquery.class.js' in application.js like so: //= require jquery.class
I get this error: Sprockets::ContentTypeMismatch my.class is 'application/octet-stream', not 'application/javascript'
But if I rename the file and add an 's' at the end, everything works. //= require jquery.classs // That works.
The text was updated successfully, but these errors were encountered:
Please report this in Sprockets issues tracker
Sorry, something went wrong.
The name of the file should end in a valid format, .js.
.js
Had this same bug. Ended up fixing it per @josh above. Ex text below:
$ ls | grep raty jquery.raty.js jquery.raty.conf.js $ cat application.js | grep raty //= require jquery.raty //= require jquery.raty.conf.js
JIC it helps someone!
-Tom
No branches or pull requests
So when I require this file 'jquery.class.js' in application.js like so:
//= require jquery.class
I get this error:
Sprockets::ContentTypeMismatch
my.class is 'application/octet-stream', not 'application/javascript'
But if I rename the file and add an 's' at the end, everything works.
//= require jquery.classs // That works.
The text was updated successfully, but these errors were encountered: