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
TypeScript fails to work properly with this package at the moment because the module and types property of the distributed package.json are pointing to non-existent properties.
(PR to come later)
Workarounds
Add a (temporary) path binding to the proper file
When you upgrade your packages later on, this shouldn't break anything, and requires no modification of your code or the installed package.
If you update node_modules/@sozialhelden/ietf-language-tags/package.json to use the esm outputs, typescript works properly, but this affects the ability to use npm install, so it may not be preferable, esp in CI/CD environments.
TypeScript fails to work properly with this package at the moment because the
module
andtypes
property of the distributedpackage.json
are pointing to non-existent properties.(PR to come later)
Workarounds
Add a (temporary) path binding to the proper file
When you upgrade your packages later on, this shouldn't break anything, and requires no modification of your code or the installed package.
Reference the esm module directly from your code
This has the undesirable side effect of adding many
../../
to your code...Update the installed package
If you update
node_modules/@sozialhelden/ietf-language-tags/package.json
to use the esm outputs, typescript works properly, but this affects the ability to usenpm install
, so it may not be preferable, esp in CI/CD environments.The text was updated successfully, but these errors were encountered: