You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.
I just encountered an issue where the TypeScript types would not get picked up. I'm using Kaboom with Vite as a bundler.
Apparrently an entry is missing in the bundled package.json (see gxmari007/vite-plugin-eslint#60), adding it manually locally fixed it.
This was the error I got:
"TS7016: Could not find a declaration file for module 'kaboom'. '[...]/kaboom-ts/node_modules/kaboom/dist/kaboom.mjs' implicitly has an 'any' type. There are types at '[...]/kaboom-ts/node_modules/kaboom/dist/kaboom.d.ts', but this result could not be resolved when respecting package.json "exports". The 'kaboom' library may need to update its package.json or typings."
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I just encountered an issue where the TypeScript types would not get picked up. I'm using Kaboom with Vite as a bundler.
Apparrently an entry is missing in the bundled package.json (see gxmari007/vite-plugin-eslint#60), adding it manually locally fixed it.
This was the error I got:
"TS7016: Could not find a declaration file for module 'kaboom'. '[...]/kaboom-ts/node_modules/kaboom/dist/kaboom.mjs' implicitly has an 'any' type. There are types at '[...]/kaboom-ts/node_modules/kaboom/dist/kaboom.d.ts', but this result could not be resolved when respecting package.json "exports". The 'kaboom' library may need to update its package.json or typings."
To fix it, I changed:
to:
To reproduce you just have to create a vanilla-ts Vite project and add Kaboom.
Obviously changing the node_modules locally isn't that great, so I though I'd let you know.
Great library by the way, it's a lot of fun to use :)
Beta Was this translation helpful? Give feedback.
All reactions