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: File to import not found or unreadable: bootstrap/scss/variables after Upgrading from 3.3.7 to 3.4.1 #1206

Open
akashp-18 opened this issue Dec 10, 2019 · 1 comment

Comments

@akashp-18
Copy link

akashp-18 commented Dec 10, 2019

Received a notification from BOT: [Security] Bump bootstrap-sass from 3.3.7 to 3.4.1 Commit

After merging the same I am receiving Error: File to import not found or unreadable: bootstrap/variables

I am importing
@import 'bootstrap/variables'; @import 'bootstrap/mixins';
in my rails view file (_colors.scss.erb) Which seems to create the above issue on Heroku.
Rails Version : 4.2.10
Ruby Version: 2.5.5

Looks like it is not able to locate file _variables.scss present in node_modules/bootstrap/scss. After giving the relative URL also it was giving same issue.

Tried solution suggested on https://stackoverflow.com/questions/48434762/error-file-to-import-not-found-or-unreadable-bootstrap-scss-bootstrap But it did not help.

Any help will be appreciated.

@akashp-18 akashp-18 changed the title Error: File to import not found or unreadable: bootstrap/scss/bootstrap after Upgrading from 3.3.7 to 3.4.1 Error: File to import not found or unreadable: bootstrap/scss/variables after Upgrading from 3.3.7 to 3.4.1 Dec 10, 2019
@fang-niuwa
Copy link

have you restart rails server after importing those modules?

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

No branches or pull requests

2 participants