I use vite 5.0.6 in my project, and I have 'jewish-date' v2.0.8 installed as a dependency.
When I run npm run build I get the following error:
> npm run build
>[email protected] build
> tsc && vite build
src/component/header.tsx:11:8 - error TS7016: Could not find a declaration file for module 'jewish-date'. 'XXX/node_modules/jewish-date/dist/mjs/index.js' implicitly has an 'any' type.
There are types at 'XXX/node_modules/jewish-date/lib/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'jewish-date' library may need to update its package.json or typings.
11 } from "jewish-date";~~~~~~~~~~~~~