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

Undefined variable: "$radius-small" #58

Closed
Kaisaurus opened this issue Apr 25, 2018 · 4 comments
Closed

Undefined variable: "$radius-small" #58

Kaisaurus opened this issue Apr 25, 2018 · 4 comments
Assignees

Comments

@Kaisaurus
Copy link

Kaisaurus commented Apr 25, 2018

Hi, first of all thanks for this awesome project.
I just wanted to report a error I am getting when compiling.

My sass import looks like this:

@import "~bulma"
@import '~bulma-calendar'

I am using:

"bulma": "^0.6.0",
"bulma-calendar": "^1.3.0",

I am getting this error (I use GatsbyJS/React):

 ERROR  Failed to compile with 1 errors

 error  in ./~/bulma-calendar/dist/bulma-calendar.sass

Module build failed:
$calendar-border-radius: $radius-small !default
                        ^
      Undefined variable: "$radius-small".
@yurfuwa
Copy link

yurfuwa commented Apr 25, 2018

I happened same problems on nuxt.js :S

@Kaisaurus
Copy link
Author

Kaisaurus commented Apr 25, 2018

I found out the problem was in the way I imported in the .js file, not the sass import.

I used to have a import like such
import bulmaCalendar from 'bulma-calendar

This imported the .js and the .sass which was giving the error, changing the import so it only gets the specific js file needed fixed the error:
import bulmaCalendar from 'bulma-calendar/dist/bulma-calendar.min'

(Im still importing the sass the same way as before)
@import "~bulma" @import '~bulma-calendar'

@Wikiki
Copy link
Collaborator

Wikiki commented Apr 27, 2018

Hi,

it's a weird behavior that sass trigger an error.

@Kaisaurus thanks, I'll update the doc with your fix

@Wikiki Wikiki self-assigned this May 13, 2018
@Wikiki Wikiki closed this as completed in 37019a6 Jun 8, 2018
@Wikiki
Copy link
Collaborator

Wikiki commented Jun 8, 2018

🎉 This issue has been resolved in version 0.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

3 participants