-
Notifications
You must be signed in to change notification settings - Fork 59
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
couldn't find file 'material_icons' with type 'application/javascript' #10
Comments
Hello @siaw23, Yes, you need to add the following line to
I think you've added a similar line to |
Nope, I haven't. And actually after adding |
Ok, I will check the gem with your environment. Do you have the code of your application public? |
ok i'll create a separate repo to recreate the problem in a couple of hours. |
Thank you @siaw23! |
this branch has the problem: https://github.com/siaw23/twitter/tree/material_icon_problem |
Hello! There are no problem ) you should use *= require material_icons instead //= require material_icons app.js style //= require this_is_for_js app.css style /*
*= require this_is_css
*/ app.css.erb used for some ruby code inside |
Hello @mibamur, I added @siaw23, can you confirm this is problem? Thanks! |
HI,
problem described by @siaw23 related to rails asset rendering (default rendering). Require file with |
Ye @romaslmd, there are two files called I will create a fork of @siaw23's project this evening (I'm out now), and rename the file |
@Angelmmiguel ok cause it looks like this doesn't fix it and there could be lots of problems with different rails versions. currently not working for me still. the documentation could be better. i will try a workaround later this week. |
Yes, the documentation of Rails Assets changes with every new version of Sprockets |
I check with same ruby and rails versions and I can see the icons without modify any configuration in your project (see attached image). Are you using a Linux distro or Mac OS @siaw23? |
@Angelmmiguel i'm using a Mac. actually i got to this level. but is there an explanation why my bootstrap vanishes after successfully rendering the icons? |
@siaw23 have you got Material Icon font installed locally in your Mac OS? |
@Angelmmiguel yeap ;) |
@siaw23 uninstall it and try, it can be the problem :) |
@Angelmmiguel actually it wasn't installed locally, but it wasn't working. after local install still not working. i have a feeling it because we have 2 application files in the asset pipeline. |
Yes @siaw23, but I didn't get the error with these files. Please, check if renaming |
no luck. |
Also try to create new project with different ruby/rails version and check if it works. |
The README needs serious updating. |
There is an opened pull request to update |
@siaw23 |
I add some additional info in README and update the name of CSS standard application file, now its ( |
I will close this issue. If the problem appears in other environments I will reopen the case. Thank you all for participating :) |
If you're just googling this error message, your problem might be as simple as forgetting to restart rails after installing this gem 😛 |
hahaha the simplest solution is always the best 😂. Thanks for your comment @alexmiddeleer, I will add a section in the |
Server Restart, solved the problem |
With
rails 4.2.5.1
andruby 2.3
I getcouldn't find file 'material_icons' with type 'application/javascript'
. I am assumingapplication.css.erb
goes inassets/stylesheets
. I feel I have done everything to have this working but it's not working. Any ideas why?The text was updated successfully, but these errors were encountered: