question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

File to import not found or unreadable: node_modules/@coreui/coreui/scss/bootstrap-variables.",

See original GitHub issue

when I run npm start I get flowing error:

> node-sass-chokidar --include-path ./node_modules ./src/scss -o ./src/scss

{
  "status": 1,
  "file": "xxxxxx/src/scss/vendors/_variables.scss",
  "line": 3,
  "column": 1,
  "message": "File to import not found or unreadable: node_modules/@coreui/coreui/scss/bootstrap-variables.",
  "formatted": "Error: File to import not found or unreadable: node_modules/@coreui/coreui/scss/bootstrap-variables.\n        on line 3 of src/scss/vendors/_variables.scss\n        from line 2 of src/scss/vendors/chart.js/chart.scss\n>> @import \"node_modules/@coreui/coreui/scss/bootstrap-variables\";\r\n   ^\n"
}

I use following package :

"@coreui/coreui": "^2.0.2",
"@coreui/coreui-plugin-chartjs-custom-tooltips": "^1.2.0",
"@coreui/icons": "^0.2.0",
"@coreui/react": "^2.0.1",
"bootstrap": "^4.1.1",
"core-js": "^2.5.7",
"react": "^16.5.1",
"react-dom": "^16.5.1",
"react-scripts": "1.1.5"

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
xidedixcommented, Feb 1, 2019

Starting with @coreui/coreui v2.0.4 and up there is no need for an explicit import of bootstrap variables and functions into the template
The current version of src/scss/vendors/_variables.scss should look like this:

// Override Boostrap variables
@import "../variables";
@import "~bootstrap/scss/mixins";
@import "~@coreui/coreui/scss/variables";
1reaction
xidedixcommented, Oct 9, 2018

afaik starting with @coreui/coreui v2.0.4 and up there is no need for an explicit import of bootstrap variables into the template

Read more comments on GitHub >

github_iconTop Results From Across the Web

SCSS file error: File to import not found or unreadable: bootstrap
Looks like you're missing a pretty big hint! File to import not found or unreadable: default. It's looking for a file called default.scss ......
Read more >
"File to import not found or unreadable" When @import scss ...
Not sure if it is an actual bug or my curly hands, but i tried to provide as more details as possible to...
Read more >
Error: File to import not found or unreadable: bootstrap - Drupal
The only place I can find a reference to "bootstrap" without further direction in in my theme yml file, where it is supposed...
Read more >
file to import not found or unreadable - Visual Studio Feedback
Its a normal Web App (WinForms) using VB.NET with a CSS folder where I was adding the SCSS files. Example: css mixins.scss variables.scss...
Read more >
sass error : file to import not found or unreadable | Ionic Forums
I was trying to develop an app using ionic 3 , cordova 7 and angular. What I was getting ? I was getting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found