-
Notifications
You must be signed in to change notification settings - Fork 192
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
Unhandled JS Exception: Can't find variable self #318
Comments
Hey @SanyasiraoM This IP address (192.168.2.25.xio.io) looks very odd to me. Edit. |
@krizzu Thanks for reply, Below is my /etc/hosts file
|
As suggested in facebook/react-native#12786, DISABLE_XIP also did not work for me |
Once you disable XIP, do you still get an address ip |
No @krizzu, I'm not getting. But still getting same error message without .xip.io |
Does is happen in iOS simulator or only on real device? |
@zamotany Real device |
It's hard to tell what might be causing this problem. I don't believe the issue is connected to installing app with xcode - I've done it multiple times without a red screen. |
@zamotany Will try it |
@SanyasiraoM did you ever get this resolved? I'm stuck with the same problem, and I'm curious if you discovered a solution. |
@zamotany No. |
@SanyasiraoM I'm still completely stuck. I'll post the solution here if I figure it out. |
@SanyasiraoM @jrylan We have made few changes in latest versions of Haul, please update you projects and check if the issue is still happening. |
@SanyasiraoM @zamotany I am using the latest release of everything, my solution was to use the following in my module.exports = ({ platform }, defaultWebpackConfig) => {
defaultWebpackConfig.output.globalObject = 'this'
return {
entry: `./index.js`
}
} This prevents Webpack from trying to use |
@jrylan Hmm, interesting. Wondering if HMR still works with this change. |
This should not be an issue in |
When I run "npm run haul start -- --platform ios", It's loading 100% and says you are ready to run. But after installing app through xcode, It's showing error as in image. I don't know what am I missing, But it's working fine in other systems with same versions I mentioned below
Haul Configuration (webpack.haul.js)
Your Environment
MAC
The text was updated successfully, but these errors were encountered: