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
The dist/portal.d.ts file with the type definitions for the portal.tsx file is missing from the package on npm.
I upgraded to v7.4.0 and ran tsc --noEmit to type check my project that uses react-datepicker. This gives the following type errors:
> tsc --noEmit
node_modules/react-datepicker/dist/index.d.ts:6:20 - error TS2307: Cannot find module './portal' or its corresponding type declarations.
6 import Portal from "./portal";
~~~~~~~~~~
node_modules/react-datepicker/dist/popper_component.d.ts:2:20 - error TS2307: Cannot find module './portal' or its corresponding type declarations.
2 import Portal from "./portal";
Checking the node_modules/react-datepicker/dist/ folder I can confirm that the portal.d.ts file is not included.
Looking at my package-lock.json file the specific version I am using is:
I manually downloaded the https://registry.npmjs.org/react-datepicker/-/react-datepicker-7.4.0.tgz and poked around inside to verify the file is indeed missing.
The text was updated successfully, but these errors were encountered:
The dist/portal.d.ts file with the type definitions for the portal.tsx file is missing from the package on npm.
I upgraded to v7.4.0 and ran tsc --noEmit to type check my project that uses react-datepicker. This gives the following type errors:
Checking the
node_modules/react-datepicker/dist/
folder I can confirm that the portal.d.ts file is not included.Looking at my package-lock.json file the specific version I am using is:
I manually downloaded the
https://registry.npmjs.org/react-datepicker/-/react-datepicker-7.4.0.tgz
and poked around inside to verify the file is indeed missing.The text was updated successfully, but these errors were encountered: