TinyColor: tinycolor is not a function
I just upgraded tinycolor@1.5.0 and code like this:
const tinycolor = require('tinycolor2');
tinycolor(color)
It comes tinycolor is not a function
error, plz take a look.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 39 (26 by maintainers)
Commits related to this issue
- add note about ESM support and #249 — committed to bgrins/TinyColor by bgrins 2 years ago
- attempt browser field in package.json for beta6 (#249) — committed to bgrins/TinyColor by bgrins 2 years ago
- Add a browser entry field in package.json. This fixes a reported case of a build tool using the ESM export, and does not seem to negatively affect other tools which ignore this in lieu of the exports ... — committed to bgrins/TinyColor by bgrins 2 years ago
- Add a browser entry field in package.json. This fixes a reported case of a build tool using the ESM export, and does not seem to negatively affect other tools which ignore this in lieu of the exports ... — committed to bgrins/TinyColor by bgrins 2 years ago
- frontend: update tinycolor2 Need to change the import syntax for v1.6.0. See: https://github.com/bgrins/TinyColor/issues/249 — committed to ilri/OpenRXV by alanorth a year ago
alright, i will create demo and send you tomorrow to keep looking into. It’s too late here:)