bulma-calendar: Import problem
Hi,
When I tried to use your library with webpack I met problem, that $radius-small
is not defined, when I tried to bundle it with node-sass
loader.
I found that if you sass module have dependencies from other npm package you need to use special tilde import to define dependencies, so it will be possible to load modules in right order.
In case of bulma-calendar
it was needed to add @import "~bulma/bulma"
on top line of bulma-calendar.sass
, after that I was able to bundle bulma-calendar
with webpack without problem.
Can you take a look into this problem? Anyway thanks for great library!
Sorry can’t find in doc about this import, but it defined somewhere in this package: https://npmjs.org/package/node-sass And link to discussion about implement this: https://github.com/sass/sass/issues/2350
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 19 (9 by maintainers)
this has worked for me:
Hi, sorry for the inconvenience I’ll fix this issue this weekend.
thanks @mokhosh
Changed to v2.0.0 and 2.0.1, still with same problems… .scss:
.js:
package.json:
sass is within dsit/css/ or src/sass directory
+1 Having this issue too, as I’m trying to get any bulma-calendar JavaScript working.
If you installed bulma first tyen how do you import it ? Using css ? If yes then import the css extension file (by default it’s the sass file but if you use the import rule using css file existing into dist folder then it’ll work)