-
Notifications
You must be signed in to change notification settings - Fork 32
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
run time error: chroma__default.default.scale is not a function #115
Comments
Please get into the habit of searching for the error in the existing issues first. This exact problem has been discussed here already: #105 |
For reference, and for others who come upon this, you can go up to Ref: BenGWeeks/Zapp.ie#39 |
Additional note: Since v2.6.0 chroma.js no longer is a dependency. So that also should improve compatibility with CRA. CRA, however, is not officially supported for the reasons described in the README. |
Thanks @grubersjoe |
I did try v2.6.0 and v2.6.1 but I get:
Where:
|
I just tried this out with a fresh project created with CRA. If you use the ![]() |
After installing package, I tried to use the package in my application, but I got an error.
The following is my package.json:
The snippet of the package-lock.json with dependencies is as followed:
I do not know the root cause, but I resolved the issue by first install
chroma-js
with specific version.Then, install
react-activity-calendar
.Lastly, my application is able to use the
react-activity-calendar
now.Question 1: I am unsure about the root cause. Anyone to pinpoint the error?
Question 2: To prevent from error for now, should we update the
package.json
to restrict people from usingchroma-js@2.4.4
temporarily?Thank you!
The text was updated successfully, but these errors were encountered: