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

Entry file index.js does not exist. If you use another file as your entry point, pass ENTRY_FILE=myindex.js #1453

Closed
Shperung opened this issue Jul 22, 2021 · 2 comments

Comments

@Shperung
Copy link

Environment

System:
OS: macOS 11.3
CPU: (4) x64 Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz
Memory: 206.95 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.0.0 - /usr/local/bin/node
Yarn: Not Found
npm: 7.10.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
Android SDK:
API Levels: 26, 29, 30
Build Tools: 29.0.2, 30.0.3
System Images: android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 4.1 AI-201.8743.12.41.7199119
Xcode: 12.5/12E262 - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_292 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.64.2 => 0.64.2
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Description

After update https://react-native-community.github.io/upgrade-helper/?from=0.63.4&to=0.64.2 crash build release with error - Entry file index.js does not exist. If you use another file as your entry point, pass ENTRY_FILE=myindex.js

image

@YadongChen
Copy link

YadongChen commented Jul 23, 2021

Hope useful

In my case, I have a file with a modified suffix:index.js => index.tsx
So need to add an additional instruction:facebook/react-native#31282 (comment)

Related discussions:

  1. https://stackoverflow.com/questions/30694367/how-to-rename-react-native-entry-file-index-ios-js

@Shperung
Copy link
Author

@YadongChen Thanks - work for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants