Skip to content

Fix: Uncaught TypeError: Color is not a function in Vite (esbuild, Rollup)#448

Open
kikuomax wants to merge 1 commit into
wtho:masterfrom
kikuomax:es-module-interop
Open

Fix: Uncaught TypeError: Color is not a function in Vite (esbuild, Rollup)#448
kikuomax wants to merge 1 commit into
wtho:masterfrom
kikuomax:es-module-interop

Conversation

@kikuomax

@kikuomax kikuomax commented Dec 5, 2023

Copy link
Copy Markdown

Fixes

Changes

  • Turn on esModuleInterop options in TypeScript configs
  • Change import syntax of Color and mkdirp

- Turns on `esModuleInterop` in TypeScript configs and fixes import
  statements for `Color` and `mkdirp` packages so that transpiled JS
  files can be imported in esbuild and Rollup.
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

Successfully merging this pull request may close these issues.

1 participant