Comments (3)
@hansy Great find! The $popover-arrow-width
is not interpolated properly in the dist Shards CSS files and therefore the css-loader
cannot parse it as it's not valid CSS.
shards-ui/src/scss/_variables.scss
Line 759 in 3fe228e
I'll push the fix for this bug in the 2.0.3 patch which will be published in the following days or Monday at the latest. Until then, a quick fix would be to recompile the shards.scss
main file and override the $popover-arrow-width
variable like so:
$popover-arrow-outer-width: $popover-arrow-width + 1;
Sorry for the inconvenience and thank you for reporting this bug. 😃
from shards-ui.
@hansy Can you please provide more details about your current setup? What version of Node are you using and what errors are you receiving?
from shards-ui.
Of course. Actually (I apologize), I'm using Nuxt v1.40, which is basically Vue.js.
Everything is the default configuration except that I included the use of the SASS preprocessor (yarn add node-sass sass-loader
), and added a root .scss path to nuxt.config.js
:
// nuxt.config.js
module.exports = {
// ... default config
css: [
'@/assets/scss/index.scss',
],
}
My /assets/scss/index.scss
is:
@import 'bootstrap/scss/bootstrap.scss';
@import 'shards-ui/dist/css/shards.min.css';
This fails with:
Module build failed: Error: Lexical error on line 1. Unrecognized text.
$popover-arrow-width
^
at Parser.parseError (/Users/hansy/Dropbox/projects/project/landing/node_modules/postcss-calc/node_modules/reduce-css-calc/dist/parser.js:160:21)
at Object.parseError (/Users/hansy/Dropbox/projects/project/landing/node_modules/postcss-calc/node_modules/reduce-css-calc/dist/parser.js:309:28)
at Object.next (/Users/hansy/Dropbox/projects/project/landing/node_modules/postcss-calc/node_modules/reduce-css-calc/dist/parser.js:564:25)
at Object.lex (/Users/hansy/Dropbox/projects/project/landing/node_modules/postcss-calc/node_modules/reduce-css-calc/dist/parser.js:574:22)
at lex (/Users/hansy/Dropbox/projects/project/landing/node_modules/postcss-calc/node_modules/reduce-css-calc/dist/parser.js:196:27)
at Parser.parse (/Users/hansy/Dropbox/projects/project/landing/node_modules/postcss-calc/node_modules/reduce-css-calc/dist/parser.js:209:26)
at /Users/hansy/Dropbox/projects/project/landing/node_modules/postcss-calc/node_modules/reduce-css-calc/dist/index.js:35:30
at walk (/Users/hansy/Dropbox/projects/project/landing/node_modules/postcss-value-parser/lib/walk.js:15:13)
at ValueParser.walk (/Users/hansy/Dropbox/projects/project/landing/node_modules/postcss-value-parser/lib/index.js:18:5)
at exports.default (/Users/hansy/Dropbox/projects/project/landing/node_modules/postcss-calc/node_modules/reduce-css-calc/dist/index.js:29:51)
at transformValue (/Users/hansy/Dropbox/projects/project/landing/node_modules/postcss-calc/dist/lib/transform.js:24:45)
at exports.default (/Users/hansy/Dropbox/projects/project/landing/node_modules/postcss-calc/dist/lib/transform.js:54:100)
at /Users/hansy/Dropbox/projects/project/landing/node_modules/postcss-calc/dist/index.js:28:52
at /Users/hansy/Dropbox/projects/project/landing/node_modules/postcss/lib/container.js:144:26
at Rule.each (/Users/hansy/Dropbox/projects/project/landing/node_modules/postcss/lib/container.js:110:22)
at Rule.walk (/Users/hansy/Dropbox/projects/project/landing/node_modules/postcss/lib/container.js:143:21)
@ ./assets/scss/index.scss 4:14-200 13:3-17:5 14:22-208
@ ./.nuxt/App.js
@ ./.nuxt/index.js
@ ./.nuxt/client.js
@ multi webpack-hot-middleware/client?name=client&reload=true&timeout=30000&path=/__webpack_hmr ./.nuxt/client.js
Commenting out the shards import statement "resolves" the error.
from shards-ui.
Related Issues (20)
- Uncaught TypeError with Datepicker inside modal HOT 2
- list-group list-group-flush HOT 1
- No tests? HOT 3
- Add Visual Regression Testing HOT 2
- Why are there dependencies? HOT 5
- Will the npm package be published? HOT 1
- Latest npm release is missing src folder HOT 2
- Checkbox issue HOT 2
- Carousel don't event swipe on mobile HOT 1
- Installation fails on Node 12 HOT 3
- Tooltip/Popover Left/Right Inverted
- Bootstrap dependency is pinned to an insecure version of bootstrap HOT 2
- Bundlesize in devDependences HOT 1
- Note: Bootstrap 4 doesn't supports input-group-addon
- Long modal is not scrollable and extends past window HOT 1
- Ui
- Are you going to upgrade to Bootstrap 5?
- Downloading from website does not work
- Navbar Documentation?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shards-ui.