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

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

Closed
unicornware opened this issue May 5, 2022 · 1 comment · Fixed by #36, #37, #39, #52 or #53
Closed

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

unicornware opened this issue May 5, 2022 · 1 comment · Fixed by #36, #37, #39, #52 or #53
Assignees
Labels
scope:cjs commonjs scope:esm es modules status:fixed fixed, but not released status:merged merged, but not released status:prereleased merged and prereleased status:released merged and released type:fix bug reports and fixes

Comments

@unicornware
Copy link
Member

unicornware commented May 5, 2022

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

@unicornware unicornware added the type:fix bug reports and fixes label May 5, 2022
@unicornware unicornware self-assigned this May 5, 2022
@unicornware unicornware changed the title 🐛 DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution 🐛 DeprecationWarning: Use of deprecated folder mapping "./" May 5, 2022
@unicornware unicornware changed the title 🐛 DeprecationWarning: Use of deprecated folder mapping "./" 🐛 [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" Aug 3, 2022
@unicornware unicornware added scope:cjs commonjs scope:esm es modules status:fixed fixed, but not released status:merged merged, but not released labels Aug 3, 2022
@unicornware unicornware linked a pull request Aug 3, 2022 that will close this issue
3 tasks
@unicornware unicornware added the status:prereleased merged and prereleased label Aug 16, 2022
@github-actions github-actions bot added the status:released merged and released label Aug 18, 2022
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity
after it was closed. Please open a new issue for related bugs or features. Be sure to
reference this issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.