Skip to content

🐛 [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" #29

Closed
@unicornware

Description

@unicornware

Description

This isn't an error, but a warning produced by Node.js:

(node:25986) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /Users/lex/Projects/UNICORNWARE/react-survey-app/node_modules/@flex-development/tutils/package.json.
Update this package.json to use a subpath pattern like "./*".

Steps to reproduce

  1. Build esm (or cjs-esm hybrid) project that uses @flex-development/tutils
  2. See warning in terminal

Expected behavior

A warning should not be produced.

Relevant screenshots

N/A

Environment

  • Node Version: 16.0.0
  • OS: macOS v11.3.1
  • Package Manager: yarn@3.0.2
  • Package version(s): >=4.2.2
  • Browser: N/A

Possible solution

Additional context

Metadata

Metadata

Assignees

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions