ansicolor icon indicating copy to clipboard operation
ansicolor copied to clipboard

new version broke type definitions

Open decartesol opened this issue 1 year ago • 4 comments

image

Could not find a declaration file for module 'ansicolor'. '/workspaces/meta-repo/repos/futarchy-indexer/node_modules/.pnpm/[email protected]/node_modules/ansicolor/build/ansicolor.mjs' implicitly has an 'any' type.
  There are types at '/workspaces/meta-repo/repos/futarchy-indexer/packages/indexer/node_modules/ansicolor/ansicolor.d.ts', but this result could not be resolved when respecting package.json "exports". The 'ansicolor' library may need to update its package.json or typings.ts(7016)

decartesol avatar Feb 27 '24 22:02 decartesol

Same issue here.

pernydev avatar Mar 03 '24 17:03 pernydev

What's your moduleResolution set to in your tsconfig.json? You're probably hitting https://github.com/xpl/ansicolor/pull/22.

Cherry avatar Mar 03 '24 19:03 Cherry

I'm going to publish the fix from #22 soon, hope it'll fix your issue

xpl avatar Mar 03 '24 23:03 xpl

Please check if it works with the most recent version (2.0.3)

xpl avatar Mar 03 '24 23:03 xpl