Skip to content

Conversation

@elchininet
Copy link
Owner

@elchininet elchininet commented Aug 11, 2023

Following the recommendations in the TypeScript Handbook. This is to avoid TypeScript complaining about missing types when the ESM module is used:

Could not find a declaration file for module 'postcss-rtlcss'. '/path-to-project/node_modules/postcss-rtlcss/esm/index.js' implicitly has an 'any' type.
There are types at '/path-to-project/node_modules/postcss-rtlcss/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'postcss-rtlcss' library may need to update its package.json or typings.ts(7016)

@elchininet elchininet merged commit 395fc11 into master Aug 11, 2023
@elchininet elchininet deleted the fix_esm_types branch August 11, 2023 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants