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

React native, Pnpm: browser field in package.json not been probably resolved #16105

Closed
Singloo opened this issue Apr 5, 2023 · 1 comment · Fixed by #16106
Closed

React native, Pnpm: browser field in package.json not been probably resolved #16105

Singloo opened this issue Apr 5, 2023 · 1 comment · Fixed by #16106
Labels
outdated scope: react-native Issues relating to React Native type: bug

Comments

@Singloo
Copy link
Contributor

Singloo commented Apr 5, 2023

Current Behavior

When resolving picocolors, module resolver resolves to the wrong entry file.

Current behavior: …/node_modules/picocolors/picocolors.js

Picocolors has the following package.json

"name": "picocolors",
  "version": "1.0.0",
  "main": "./picocolors.js",
  "types": "./picocolors.d.ts",
  "browser": {
    "./picocolors.js": "./picocolors.browser.js"
  }

Expected Behavior

Should resolve to …/node_modules/picocolors/picocolors.browser.js

GitHub Repo

No response

Steps to Reproduce

  1. npm install picocolors
  2. nx run-ios mobile

Nx Report

Node : 16.17.0
   OS   : darwin arm64
   pnpm : 7.30.0
   
   nx                      : 15.8.6
   @nrwl/js                : 15.8.6
   @nrwl/jest              : 15.8.6
   @nrwl/linter            : 15.8.6
   @nrwl/workspace         : 15.8.6
   @nrwl/cli               : 15.8.6
   @nrwl/detox             : 15.8.6
   @nrwl/devkit            : 15.8.6
   @nrwl/eslint-plugin-nx  : 15.8.6
   @nrwl/react             : 15.8.6
   @nrwl/react-native      : 15.8.6
   @nrwl/tao               : 15.8.6
   typescript              : 4.9.5

Failure Logs

No response

Additional Information

No response

@github-actions
Copy link

github-actions bot commented May 7, 2023

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated scope: react-native Issues relating to React Native type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants