Skip to content

[BUG] Node.js 16 results in DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field with file import #6026

Closed

Description

Current exports syntax is not compatible with node 15.

(node:12200) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at C:\Users\zdm\.node_modules\playwright-chromium\package.json.
Update this package.json to use a subpath pattern like "./*".

You need to update to the new rules or remove this section.

New rules should looks like this:

"exports": {
    ".": {
      "import": "./index.mjs",
      "require": "./index.js"
    },
    "./*": "./*.js"
  },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions