bluefantail / bulma-list

A simple list component extension for Bulma.
https://bluefantail.github.io/bulma-list
MIT License
42 stars 5 forks source link

Getting Undefined variable Sass error when using node #18

Open legezam opened 1 year ago

legezam commented 1 year ago

Hello,

I am trying to use bulma-list with a react app governed by https://www.npmjs.com/package/react-scripts.

This is my full app.scss:

@use "bulma";
@use "bulma-list/sass/bulma-list.sass";

Getting this error:

Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Undefined variable.
  ╷
1 │ $list-color: $text !default
  │              ^^^^^
  ╵
  node_modules/bulma-list/sass/bulma-list.sass 1:14  @use
  src/App.scss 2:1                                   root stylesheet

Bulma in general works just fine. It seems to me that bulma-list cannot rely on the color of $text in bulma for some reason. This is just a guess because I am not a big sass guru.

Please help.

Thanks!

ValoXya commented 5 months ago

Same issue here :)

bluefantail commented 3 months ago

I've intended for this to be fixed in v2 — if you were able to update to Bulma v1 and Bulma List v2 @legezam and @ValoXya and see if this is sorted now?