alibaba / react-intl-universal

Internationalize React apps. Not only for Component but also for Vanilla JS.
1.33k stars 153 forks source link

Typescript moduleResolution Bundler does not work properly in combination with strict true #236

Closed NicoVogel closed 10 months ago

NicoVogel commented 10 months ago

Minimal Repo that reproduces the error: https://github.com/NicoVogel/react-intl-universal-module-resolution-bundler

This package does not work with the new "moduleResolution": "Bundler" configuration for Typescript in combination with "strict": true. image

Could not find a declaration file for module 'react-intl-universal'. '[...]/react-intl-universal-module-resolution-bundler/node_modules/react-intl-universal/es/index.js' implicitly has an 'any' type. There are types at '[...]/react-intl-universal-module-resolution-bundler/node_modules/react-intl-universal/typings/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'react-intl-universal' library may need to update its package.json or typings.

cwtuan commented 10 months ago

Released in react-intl-universal@2.8.0