Skip to content
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

tslib DeprecationWarning with node v16 (15?) #267

Closed
qmhc opened this issue Apr 24, 2021 · 10 comments
Closed

tslib DeprecationWarning with node v16 (15?) #267

qmhc opened this issue Apr 24, 2021 · 10 comments
Labels
scope: dependencies Issues or PRs about updating a dependency

Comments

@qmhc
Copy link

qmhc commented Apr 24, 2021

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
@originalix

This comment was marked as duplicate.

@mesqueeb

This comment was marked as duplicate.

@tarsisexistence

This comment was marked as duplicate.

@pixelass
Copy link

pixelass commented 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

@iomariani
Copy link

This is actually an issue on tslib package:

microsoft/tslib#135

@ezolenko
Copy link
Owner

ezolenko commented Nov 17, 2021

Should be fixed in 0.31.0

@leikoilja
Copy link

leikoilja commented Dec 9, 2021

@ezolenko, I am still seeing the same issue even with rollup-plugin-typescript2==0.31.1:

(node:68636) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at  *****js/node_modules/rollup-plugin-typescript2/node_modules/tslib/package.json.
yarn info rollup-plugin-typescript2
yarn info v1.22.17
{
  name: 'rollup-plugin-typescript2',
  description: 'Seamless integration between Rollup and TypeScript. Now with errors.',
  'dist-tags': {
    latest: '0.31.1'
  },

@ezolenko ezolenko reopened this Dec 9, 2021
@ezolenko
Copy link
Owner

ezolenko commented Dec 9, 2021

@leikoilja
What's your versions in plugin output? This part:

rpt2: typescript version: 4.2.4
rpt2: tslib version: 2.3.1
rpt2: rollup version: 2.48.0
rpt2: rollup-plugin-typescript2 version: 0.31.2```

@leikoilja
Copy link

leikoilja commented Dec 10, 2021

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

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 [email protected], 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

@agilgur5 agilgur5 changed the title Deprecation Warning with node v16 (15?) tslib DeprecationWarning with node v16 (15?) Apr 23, 2022
@agilgur5
Copy link
Collaborator

Closing as this was a false alarm on the re-opening.

Should be fixed in >=0.31.0 per above

@agilgur5 agilgur5 added the scope: dependencies Issues or PRs about updating a dependency label Apr 23, 2022
Repository owner locked as resolved and limited conversation to collaborators May 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
scope: dependencies Issues or PRs about updating a dependency
Projects
None yet
Development

No branches or pull requests

9 participants