Skip to content

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

@zdm

Description

@zdm

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"
  },

Metadata

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