New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v1.3.0: TypeScript issue when importing tiny-invariant
from an CJS codebase and "moduleResolution"
is set to "node16"
#151
Comments
pkerschbaum
changed the title
v1.3.0: TypeScript issue when importing
v1.3.0: TypeScript issue when importing Sep 28, 2022
tiny-invariant
from an CJS codebase and "moduleResolution": "node16"
tiny-invariant
from an CJS codebase and "moduleResolution" is set to "node16"
pkerschbaum
changed the title
v1.3.0: TypeScript issue when importing
v1.3.0: TypeScript issue when importing Sep 28, 2022
tiny-invariant
from an CJS codebase and "moduleResolution" is set to "node16"
tiny-invariant
from an CJS codebase and "moduleResolution"
is set to "node16"
@pkerschbaum do you think I should deprecate |
Yes let's do that... |
This issue has been resolved in |
Fixed by #150 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
π Version & Regression Information
1.3.0
β― Playground Link
https://stackblitz.com/edit/node-cwmfq6
npm install
.npm run build
. The error occurs.Problem
If
tiny-invariant
is used from an TypeScript CJS package with moduleResolution node16, this means:"type"
inpackage.json
is not set or set tocommonjs
"moduleResolution": "node16"
set intsconfig.json
...then TypeScript cannot find the types:
Reason
See #150.
The text was updated successfully, but these errors were encountered: