You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run yarn ios with a React Native project where concurrently package as devDependency I get the following error:
error Failed to load configuration of your project.
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './package.json' is not defined by "exports"in /Users/my-name/Repos/project-name/node_modules/concurrently/package.json
at new NodeError (node:internal/errors:372:5)
at throwExportsNotFound (node:internal/modules/esm/resolve:472:9)
at packageExportsResolve (node:internal/modules/esm/resolve:753:3)
at resolveExports (node:internal/modules/cjs/loader:482:36)
at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
at Function.resolve (node:internal/modules/cjs/helpers:108:19)
at resolveNodeModuleDir (/Users/my-name/Repos/project-name/node_modules/@react-native-community/cli-tools/build/resolveNodeModuleDir.js:24:42)
at /Users/my-name/Repos/project-name/node_modules/@react-native-community/cli-config/build/loadConfig.js:93:76
at Array.reduce (<anonymous>)
Environment:
React Native 0.69.1
NPM version 8.14.0
Node version 16.16.0
MacOS Monterey 12.1
Concurrently version 7.2.2
I can fix this to change the following in the package.json:
When I run
yarn ios
with a React Native project whereconcurrently
package as devDependency I get the following error:Environment:
I can fix this to change the following in the package.json:
Could you resolve this?
The text was updated successfully, but these errors were encountered: