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
"npm i react-filter-box" in an app that uses typescript and when I run build I get TS2307 build errors, "Cannot find module './Expression'" and "Cannot find module './ParsedError'".
I checked the node_modules/react-filter-box/lib/src/ folder and sure enough both Expression.d.ts and ParsedError.d.ts files are missing.
I pulled down a local copy of react-filter-box and noticed the same thing in lib/src folder after running "npm run component-package".
After some google searching, it looks like a known issue for awesome-typescript-loader skips declaration type files (ie with interfaces in them).
I tested the posted suggestion, swapped out the awesome-typescript-loader in webpack loaders to use ts-loader and re-ran component-package. Sure enough, both Expression.d.ts and ParsedError.d.ts showed up where they were expected.
The text was updated successfully, but these errors were encountered:
"npm i react-filter-box" in an app that uses typescript and when I run build I get TS2307 build errors, "Cannot find module './Expression'" and "Cannot find module './ParsedError'".
I checked the node_modules/react-filter-box/lib/src/ folder and sure enough both Expression.d.ts and ParsedError.d.ts files are missing.
I pulled down a local copy of react-filter-box and noticed the same thing in lib/src folder after running "npm run component-package".
After some google searching, it looks like a known issue for awesome-typescript-loader skips declaration type files (ie with interfaces in them).
s-panferov/awesome-typescript-loader#411
I tested the posted suggestion, swapped out the awesome-typescript-loader in webpack loaders to use ts-loader and re-ran component-package. Sure enough, both Expression.d.ts and ParsedError.d.ts showed up where they were expected.
The text was updated successfully, but these errors were encountered: