Skip to content
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

bootstrap-formhelpers doesn't work: scss won't include less files! #148

Closed
jmuheim opened this issue May 7, 2014 · 7 comments
Closed

bootstrap-formhelpers doesn't work: scss won't include less files! #148

jmuheim opened this issue May 7, 2014 · 7 comments

Comments

@jmuheim
Copy link

jmuheim commented May 7, 2014

I tried to add bootstrap-formhelpers asset. But I get the following error:

File to import not found or unreadable: bootstrap-formhelpers/bootstrap-formhelpers.

It seems that the generated bootstrap-formhelpers.scss tries to load .less files, but this doesn't seem to work. When renaming the file to a .less file itself, it's working.

What to do?

@sheerun
Copy link
Contributor

sheerun commented May 8, 2014

I suggest using files from dist directory: bootstrap-formhelpers/dist/css/bootstrap-formhelpers.

You can also ping author to add main file entry in bower.json, so it will be fetched instead less version.

I'll leave it open because theoretically if we autodiscover main less file, the manifest should be in .less too. Maybe even convert .less to .scss, because .less generally sucks in Rails.

@jmuheim
Copy link
Author

jmuheim commented May 8, 2014

I suggest using files from dist directory

How can this be achieved?

You can also ping author to add main file entry in bower.json

I already have created a PR, but sadly, the maintainer doesn't respond. Is there a way to specify a fork with rails-assets?

@jmuheim
Copy link
Author

jmuheim commented May 8, 2014

@sheerun
Copy link
Contributor

sheerun commented May 9, 2014

Require path I mentioned. rails assets can compile any fork on GitHub from
"add component" tab. You need to create new tag in fork.

On Thursday, May 8, 2014, Joshua Muheim [email protected] wrote:

I suggest using files from dist directory

How can this be achieved?

You can also ping author to add main file entry in bower.json

I already have created a PR, but sadly, the maintainer doesn't respond. Is
there a way to specify a fork with rails-assets?


Reply to this email directly or view it on GitHubhttps://github.com//issues/148#issuecomment-42518867
.

@jmuheim
Copy link
Author

jmuheim commented May 9, 2014

Require path I mentioned

I don't get it. These files under dist/ aren't available in my checked out rails-assets-bootstrap-formhelpers gem, there's only the .less stuff.

@bhgames
Copy link

bhgames commented Aug 22, 2014

Having same issue with bootstrap-select. Only became an issue when upgrading to 4.0.9 from 3.2.18.

@sheerun sheerun closed this as completed in 3e10740 Oct 6, 2014
@sheerun
Copy link
Contributor

sheerun commented Oct 6, 2014

In new version of rails-assets, .less files won't be used as main assets. This should prevent your issue. Please wait for deployment, I'll notify about it on our twitter account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants