-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
babel-plugin-module-resolver doesn't work with react-native 0.63.0+ for iOS production builds #29636
Comments
@oleksandr-dziuban version babel-plugin-module-resolver ? |
@riadhriadh |
@riadhriadh Yes, I can confirm, this PR fixes the issue: I have assembled release iOS build locally with this change and it works! |
I'm currently going through this, I'm trying to run "Product > Archive" to build for appstore but it always fails with A module not being found but it works well on android, I have also tried running debug on iphone simulator and it works well with no error... |
For the meantime, I found this #29351 (comment) |
Upgrade to v0.63.3. It's now fixed Changelog of v0.63.3 :
|
Yep, thanks, closing this issues |
@oleksandr-dziuban This error occurs again on RN(v0.63.4) |
Description
In my react-native project I'm using babel-plugin-module-resolver plugin to achieve relative short path for the modules, files, directories. When I mograted from
[email protected]
to[email protected]
I found that iOS Production build cannot be assembled. Xcode throws Error 65 during build with Fastlane on CI. Manually locally in Xcode it throws the same error for Production builds. Development builds work fine.After debugging I found that relative paths cannot be resolved correctly in
[email protected]
. Reverted to 0.62 version -works fine...React Native version:
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
[email protected]
with short imports in project, use [email protected]+Expected Results
Release iOS build assembled succesfully.
Already raised issues:
For the babel plugin we already have this issue: tleunen/babel-plugin-module-resolver#403
But the reason in react-native codebase changes, because 0.62 version works fine.
Also we have a PR in react-native repo, that reverts some code for index.ios.js file detection, possibly related to this issue:
#29477
Could you please guys pay attention here, because a lot of production projects use this babel plugin. Thanks
Logs from xcode:
File
../shared/queries/search.query.gql
can't be resolved, it is defined as relative path with babel plugin:import searchQuery from "core/shared/queries/search.query.gql"
The text was updated successfully, but these errors were encountered: