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

Error in Rails 5.1 assets pipeline #4

Open
svergeylen opened this issue Sep 17, 2018 · 3 comments
Open

Error in Rails 5.1 assets pipeline #4

svergeylen opened this issue Sep 17, 2018 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@svergeylen
Copy link

I'm getting the following error in Rails 5.1 :

File to import not found or unreadable: node_modules/bootstrap/scss/functions.

The content of my css manifest is the following :

@import "selectize-bootstrap4-theme-master/scss/selectize.bootstrap4"

and bootstrap is actually available as a rails gem

bootstrap (4.1.3)
bootstrap-sass (3.3.7, 3.2.0.2)

What is the best option to make it working ?

  • Try to solve that error message ?
  • include the bootstrap-4 theme in selectize manually ? If so, which files should I copy to the selectize.js library to get the theme for bootstrap4 ?
@const-se
Copy link
Owner

const-se commented Sep 17, 2018

I will fix bootstrap import.
Also you can use a copy of selectize-bootstrap4-theme/dist/css/selectize.bootstrap4.css as a temporary solution.

@const-se const-se self-assigned this Sep 17, 2018
@const-se const-se added the bug Something isn't working label Sep 17, 2018
@svergeylen
Copy link
Author

Thank you for your very fast answer and good news that you'll fix it :-)

I tried to copy the bootstrap4 css file in the selectize main library and I imported it explicitely in my code, but I can't see any visual changes with or without it...

This is what I get with selectize libray and the copy of bootstrap4 css file :

screenshot_2018-09-18 vergeylen eu

As far as there is no difference without the css file, I guess I don't have it working for now

The import is done by the following line with Rails assets pipeline :

@import "selectize.js-master/dist/css/selectize.css"
@import "selectize.js-master/dist/css/selectize.bootstrap4.css"

(and the file is present at this location)

This is what I get by replacing 4 by 3 (i.e. bootstrap3 theme) : slight change :

screenshot_2018-09-18 vergeylen eu 1

@jdsampayo
Copy link

Had the same issue than @svergeylen , what worked for me is to use this file instead:
https://github.com/selectize/selectize.js/blob/master/dist/css/selectize.bootstrap4.css

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants