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
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
Uh oh!
There was an error while loading. Please reload this page.
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 :)
All reactions