microsoft / tslib

Runtime library for TypeScript helpers.
BSD Zero Clause License
1.25k stars 126 forks source link

Package tslib has been ignored because it contains invalid configuration #170

Open azuken opened 2 years ago

azuken commented 2 years ago

When launching React Native app, I have a warning which says that tslib package is ignored :

warn Package tslib has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in /Users/xxx/node_modules/tslib/package.json

Any plan to fix this warning ? It happens on some NodeJS libs.

monahans commented 2 years ago

This is happening for me as well!

maneetgoyal commented 2 years ago

Getting:

(node:52405) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /gfgfdgfd/node_modules/tslib/package.json.
Update this package.json to use a subpath pattern like "./*".

macOS | Node 16