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

[!] Invalid Podfile file: 767: #869

Closed
orzhtml opened this issue Jul 9, 2022 · 1 comment
Closed

[!] Invalid Podfile file: 767: #869

orzhtml opened this issue Jul 9, 2022 · 1 comment

Comments

@orzhtml
Copy link

orzhtml commented Jul 9, 2022

yarn start

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/carson/work/bz/benzhou/node_modules/entities/package.json
    at new NodeError (node:internal/errors:388:5)
    at throwExportsNotFound (node:internal/modules/esm/resolve:440:9)
    at packageExportsResolve (node:internal/modules/esm/resolve:719:3)
    at resolveExports (node:internal/modules/cjs/loader:488:36)
    at Module._findPath (node:internal/modules/cjs/loader:528:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:932:27)
    at Function.resolve (node:internal/modules/cjs/helpers:108:19)
    at resolveNodeModuleDir (/Users/carson/work/bz/benzhou/node_modules/@react-native-community/cli-tools/build/resolveNodeModuleDir.js:24:42)
    at /Users/carson/work/bz/benzhou/node_modules/@react-native-community/cli-config/build/loadConfig.js:93:76
    at Array.reduce (<anonymous>)
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

cd ./ios && arch -x86_64 pod install && cd ..


[!] Invalid `Podfile` file: 767: unexpected token at 'Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './package.json' is not defined by "exports" in /Users/carson/work/bz/benzhou/node_modules/entities/package.json

    at new NodeError (node:internal/errors:388:5)

    at throwExportsNotFound (node:internal/modules/esm/resolve:440:9)

    at packageExportsResolve (node:internal/modules/esm/resolve:719:3)

    at resolveExports (node:internal/modules/cjs/loader:488:36)

    at Module._findPath (node:internal/modules/cjs/loader:528:31)

    at Module._resolveFilename (node:internal/modules/cjs/loader:932:27)

    at Function.resolve (node:internal/modules/cjs/helpers:108:19)

    at resolveNodeModuleDir (/Users/carson/work/bz/benzhou/node_modules/@react-native-community/cli-tools/build/resolveNodeModuleDir.js:24:42)

    at /Users/carson/work/bz/benzhou/node_modules/@react-native-community/cli-config/build/loadConfig.js:93:76

    at Array.reduce (<anonymous>)

info Run CLI with --verbose flag for more details.
'.

### npx react-native info

System:
OS: macOS 12.4
CPU: (8) arm64 Apple M2
Memory: 5.06 GB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.5.0 - ~/.nvm/versions/node/v18.5.0/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v18.5.0/bin/yarn
npm: 8.12.1 - ~/.nvm/versions/node/v18.5.0/bin/npm
Watchman: 2022.07.04.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK: Not Found
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8609683
Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 18.0.0 => 18.0.0
react-native: 0.69.1 => 0.69.1
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

@fb55
Copy link
Owner

fb55 commented Jul 25, 2022

This is caused by react-native-community/cli#1168. You should be able to work around this by downgrading to a 3.x release of entities.

@fb55 fb55 closed this as completed Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants