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

DeprecationWarning: Use of deprecated folder mapping "./" rollup build #209

Open
jreuss opened this issue Sep 15, 2022 · 0 comments
Open
Assignees

Comments

@jreuss
Copy link

jreuss commented Sep 15, 2022

Description

Building with rollup yields the following warning:

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

Reproduce

Simply import tsyringe somewhere in a build using rollup. I would expect all bundlers to show a similar warning.

tsconfig:

{ 
    ...
    "compilerOptions": {
        "module": "ESNext",
        "target": "ESNext",
        ...
    }
}

Expected

No warning on build

Version(s)

  • Node: 16.13.1
  • tsyringe: ^4.7.0
  • rollup: ^2.3.4
  • tslib: ^2.0.0
  • typescript: ^4.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants