-
Notifications
You must be signed in to change notification settings - Fork 27
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
Uncaught TypeError: chroma__default.default.scale is not a function in theme.ts:65 #105
Comments
Hey. What kind of framework/bundler are you using? Next.js, Remix, Astro? Vite, Webpack? Also please post how you wanted to render the component (the props you passed). |
Hi! I'm using create-react-app. Here's the component I wanted to render:
And here is my package.json:
I appreciate your response! |
Apparently, the issue stems from CRA not supporting libraries that distribute CommonJS files with But honestly apparently CRA is pretty much dead anyways. There's also an insightful answer from @gaearon about its future. Personally, I would suggest you use Vite instead. It's powerful, up-to-date and offers everything that CRA does and more. |
Hi.
I am encountering an error when using react-activity-calendar in a React with TypeScript project. The error appears in the browser console and is as follows:
theme.ts:65 Uncaught TypeError: chroma__default.default.scale is not a function at createColorScale (theme.ts:65:1) at createDefaultTheme (theme.ts:25:1) at createTheme (theme.ts:6:1) at ActivityCalendar.tsx:192:1 at renderWithHooks (react-dom.development.js:15486:1) at updateForwardRef (react-dom.development.js:19245:1) at beginWork (react-dom.development.js:21675:1) at beginWork$1 (react-dom.development.js:27465:1) at performUnitOfWork (react-dom.development.js:26596:1) at workLoopSync (react-dom.development.js:26505:1)
Could you help me please?
The text was updated successfully, but these errors were encountered: