-
Notifications
You must be signed in to change notification settings - Fork 205
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
Doesn't work in Production #403
Comments
Similar issues here - I get a bundle error when attempting distribution: Possibly related: |
This answer in the same stackoverflow thread worked for me: https://stackoverflow.com/a/62872851/1873778
|
Have same issue in Production.... Guys, could you please check, we are really blocked. It happens in react-native@0.63, |
For me, the solution was a combination of the following suggestions: https://stackoverflow.com/a/62914788 |
@afestein It doesn't work for me... Did you try production builds for iOS successfully? |
@tleunen Could you please help with this issue? It is related to react-native@0.63.0+ versions.... and this is really big blocker for all production projects with this babel plugin.. Thanks a lot |
@oleksandr-dziuban I've never used this plugin with React Native so I unfortunately cannot help. |
This comment has been minimized.
This comment has been minimized.
Issue not in this library, but in react-native code.. Possibly this PR will solve the issue: |
faced the same issue after updating RN to 0.63.0 :( |
Additionally raised this issue for react native repo: It is critical issue for projects with this babel plugin |
Yes, I can confirm, this PR fixes the issue! facebook/react-native#29477 I have assembled release iOS build locally with this change and it works! |
// babel.config.js
{
"plugins": [
[
"module-resolver",
{
"root": ["."],
"alias": {
"a/b": "./src/a/b/index",
"a/b/c": "./src/a/b/c/index"
}
}
]
]
}
// src/app.js
import x from "a/b/c"; // resolves to "./a/b/index/c" |
No, it doesn't work. I use alias and release builds failed for iOS. The reason in react-native 0.63.2 change for react-native-xcode.sh file. |
Thank you very much for pointing to the PR that fixes the bug @oleksandr-dziuban I used https://www.npmjs.com/package/patch-package to patch react-native with the PR changes after installing packages. It worked for me. |
Hi, yes, I'm using this workaround too, but we need this PR to be merged anyway as it is critical iOS issue on react-native platform |
I'm still seeing this issue in a 0.66 react native build. It all works correctly in dev on android and ios, as well as a production android build. But when I try to bundle for iOS in production it can't resolve any of the aliases. Is anyone else still seeing this? I've scoured and tested everyone's previous solutions outlined through the many linked issues in this thread to no avail |
I also have the problem, do you resolve it? |
I am using this package in my ReactNative project.
It works well in simulator but when I publish app to app store, it doesn't work.
(To be more exact, only assets folder doesn't work. Other folders work.)
jsconfig.json
environment
The text was updated successfully, but these errors were encountered: