GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Solve DEP0148 by rinarakaki · Pull Request #22783 · react/react

Conversation

@rinarakaki

@rinarakaki rinarakaki commented Nov 17, 2021

Copy link
Copy Markdown
Contributor

Summary

I have come across the deprecation warning below in my Node 16 environment:

[DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /root/my-project/node_modules/react/package.json.
Update this package.json to use a subpath pattern like "./*".

The official description of the problem DEP0148: Folder mappings in "exports" (trailing "/") and the solution Subpath patterns.

How did you test this change?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

AHBruns and balazsorban44 reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
@rinarakaki
Solve DEP0148
78705eb
@facebook-github-bot

facebook-github-bot commented Nov 17, 2021

Copy link
Copy Markdown
Contributor

Hi @rnarkk!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@facebook-github-bot facebook-github-bot added the CLA Signed label Nov 17, 2021
@facebook-github-bot

facebook-github-bot commented Nov 17, 2021

Copy link
Copy Markdown
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@AHBruns

AHBruns commented Nov 18, 2021

Copy link
Copy Markdown

When using pnpm@6 this actually fails builds instead of just being a deprecation warning. For those in a similar boat, my current workaround is to use pnpm@5 until this is merged.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gaearon
gaearon merged commit 8edeb78 into react:main Nov 18, 2021
@rinarakaki
rinarakaki deleted the dep0148 branch November 19, 2021 00:22
eps1lon added a commit to eps1lon/react that referenced this pull request Nov 19, 2021
@eps1lon
Revert "Fix Node package.json ./ exports deprecation warning (react#2…
e717434
…2783)"

This reverts commit 8edeb78.
@eps1lon

eps1lon commented Nov 19, 2021

Copy link
Copy Markdown
Collaborator

This broke builds on main: 8edeb78. For some reason CircleCI didn't run on this PR.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

eps1lon added a commit to eps1lon/react that referenced this pull request Nov 19, 2021
@eps1lon
Revert "Fix Node package.json ./ exports deprecation warning (react#2…
5f40107
…2783)"

This reverts commit 8edeb78.
@eps1lon eps1lon mentioned this pull request Nov 19, 2021
Revert "Fix Node package.json ./ exports deprecation warning (#22783)" #22792
Merged
bvaughn pushed a commit that referenced this pull request Nov 19, 2021
@eps1lon
Revert "Fix Node package.json ./ exports deprecation warning (#22783)" (
bddbfb8
#22792)

This reverts commit 8edeb78.
@eps1lon

eps1lon commented Nov 19, 2021

Copy link
Copy Markdown
Collaborator

Had to be reverted in #22792 to unblock main.

@rnarkk Can you think of a solution that fixes the deprecation warning and works with the existing tooling?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

facebook-github-bot pushed a commit to react/react-native that referenced this pull request Nov 29, 2021
Andrei Shikov @facebook-github-bot
React Native sync for revisions c0c71a8...c1220eb
a596e98
Summary:
This sync includes the following changes:
- **[c1220eb](react/react@c1220ebdd )**: treat empty string as null ([#22807](react/react#22807)) //<salazarm>//
- **[09d9b17](react/react@09d9b1775 )**: Update deprecated features in ESLint configuration files. ([#22767](react/react#22767)) //<Esteban>//
- **[bddbfb8](react/react@bddbfb86d )**: Revert "Fix Node package.json ./ exports deprecation warning ([#22783](react/react#22783))" ([#22792](react/react#22792)) //<Sebastian Silbermann>//
- **[b831aec](react/react@b831aec48 )**: chore(fast-refresh): double check wasMounted ([#22740](react/react#22740)) //<anc95>//
- **[8edeb78](react/react@8edeb787b )**: Fix Node package.json ./ exports deprecation warning ([#22783](react/react#22783)) //<Rin Arakaki>//
- **[fdc1d61](react/react@fdc1d617a )**: Flag for client render fallback behavior on hydration mismatch ([#22787](react/react#22787)) //<salazarm>//
- **[aa19d56](react/react@aa19d569b )**: Add test selectors to experimental build ([#22760](react/react#22760)) //<Brian Vaughn>//
- **[520ffc7](react/react@520ffc77a )**: Use globalThis if possible for native fetch in browser build ([#22777](react/react#22777)) //<Jiachi Liu>//
- **[afbc2d0](react/react@afbc2d08f )**: Remove unused react-internal/invariant-args ESLint rule. ([#22778](react/react#22778)) //<Esteban>//
- **[ca94e26](react/react@ca94e2680 )**: Remove 'packages/shared/invariant.js' ([#22779](react/react#22779)) //<Esteban>//
- **[8356471](react/react@83564712b )**: Move SuspenseList to experimental channel ([#22765](react/react#22765)) //<Andrew Clark>//
- **[d4144e6](react/react@d4144e6e5 )**: fix : grammatical typo for test description ([#22764](react/react#22764)) //<Brijesh Prasad>//
- **[0b32951](react/react@0b329511b )**: chore: fix comment typo ([#22657](react/react#22657)) //<Han Han>//
- **[e6f60d2](react/react@e6f60d2ad )**: fix typos ([#22715](react/react#22715)) //<180909>//

Changelog:
[General][Changed] - React Native sync for revisions c0c71a8...c1220eb

jest_e2e[run_all_tests]

Reviewed By: yungsters

Differential Revision: D32646433

fbshipit-source-id: c534ee7a17141634700c90fc2c7b34bfbe17887a
@balazsorban44 balazsorban44 mentioned this pull request Dec 18, 2021
React 18RC Upgrade not working vercel/next.js#32587
Closed
@huozhi huozhi mentioned this pull request Mar 15, 2022
Experimental: Deprecated folder mapping vercel/next.js#31665
Closed
zhengjitf pushed a commit to zhengjitf/react that referenced this pull request Apr 15, 2022
@rinarakaki @zhengjitf
Fix Node package.json ./ exports deprecation warning (react#22783)
6dbbc25
zhengjitf pushed a commit to zhengjitf/react that referenced this pull request Apr 15, 2022
@eps1lon @zhengjitf
Revert "Fix Node package.json ./ exports deprecation warning (react#2…
11a9f51
…2783)" (react#22792)

This reverts commit 8edeb78.
mrizwanashiq pushed a commit to mrizwanashiq/react that referenced this pull request Jun 25, 2026
@rinarakaki
Fix Node package.json ./ exports deprecation warning (react#22783)
f50a3ae
mrizwanashiq pushed a commit to mrizwanashiq/react that referenced this pull request Jun 25, 2026
@eps1lon
Revert "Fix Node package.json ./ exports deprecation warning (react#2…
1d03de3
…2783)" (react#22792)

This reverts commit f50a3ae.
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
@rinarakaki
Fix Node package.json ./ exports deprecation warning (react#22783)
fe7d001
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
@eps1lon
Revert "Fix Node package.json ./ exports deprecation warning (react#2…
eaea3db
…2783)" (react#22792)

This reverts commit fe7d001.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

CLA Signed

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@rinarakaki @facebook-github-bot @AHBruns @eps1lon @gaearon
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.