question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tslib `DeprecationWarning` with node v16 (15?)

See original GitHub issue

What happens and why it is wrong

(node:37540) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at E:\pocket\node_modules\rollup-plugin-typescript2\node_modules\tslib\package.json.
Update this package.json to use a subpath pattern like "./*".

Environment

operating system: Windows 10
node: 16.0.0
npm: 7.11.1
yarn: 2.4.1
Versions
rollup: ^2.41.0
rollup-plugin-typescript2: ^0.30.0
typescript: 4.2.3

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:55
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
pixelasscommented, Aug 1, 2021

please use the thumbs up on the first comment instead of spamming the thread. New (useless) comments will notify everybody subscribed to this thread. Thank you.

Deprecation_Warning_with_node_v16__15___·_Issue__267_·_ezolenko_rollup-plugin-typescript2
3reactions
leikoiljacommented, Dec 10, 2021

@ezolenko, thanks for getting back to me: So, yarn list yields:

├─ typescript@4.5.2
├─ tslib@2.3.1
├─ rollup@1.32.1
├─ rollup-plugin-typescript2@0.30.0

Edit: oh, flip… i dont get yarn dependency resolution logic a bit… yarn info showed me the plugin is at 0.31.1, but now if i understand correctly it just shows the latest available version, not what i have installed. Now that i ran yarn list is see that plugin is at 0.30.0. Tried yarn upgrade rollup-plugin-typescript2 to get the latest version but it still installed me 0.30.0, so i ended up with yarn upgrade rollup-plugin-typescript2@0.31.1, which installed 0.31.1 and bumped my package.json. And the issues is indeed fixed, no more warnings 💥 Thanks @ezolenko, sorry for the false alarm

Read more comments on GitHub >

github_iconTop Results From Across the Web

A brand new website interface for an even better experience!
Deprecation Warning with node v16 (15?)
Read more >
Ask Question - Stack Overflow
DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at "...\node_modules\postcss\ ...
Read more >
Deprecated APIs | Node.js v19.3.0 Documentation
Deprecated APIs#. Node.js APIs might be deprecated for any of the following reasons: Use of the API is unsafe. An improved alternative API...
Read more >
cannot read properties of null (reading 'matches') npm - You.com
I run npm install canvas png-js date-fns axios crypto-js ts-md5 tslib ... setup (node:77826) DeprecationWarning: Default PostCSS plugins are deprecated.
Read more >
[dspace-tech] Problem on accessing front page on local Network
node -v v16.13.0 ... tsconfig.ts-node.json scripts/set-env.ts --prod ... package at /home/dspace-7-angular/node_modules/tslib/package.json.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found