-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
undefined is not an object (evaluating 'window.location.href') #48624
Comments
Warning Unsupported version: It looks like your issue or the example you provided uses an unsupported version of React Native. |
Warning Unsupported version: It looks like your issue or the example you provided uses an unsupported version of React Native. |
Warning Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:
|
@sandeepmahajan11, |
Could you please suggest ,how to resolve this?
…On Mon, 13 Jan, 2025, 12:42 pm Prince Tripathi, ***@***.***> wrote:
@sandeepmahajan11 <https://github.com/sandeepmahajan11>,
window.location.href will not be available in iOS and Android runtimes.
It is a property available in web browsers.
https://developer.mozilla.org/en-US/docs/Web/API/Location/href
—
Reply to this email directly, view it on GitHub
<#48624 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADKLFNQZ2APGGLQAF47KR4D2KNRMPAVCNFSM6AAAAABVA5X26OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOBWGM2TGMBZGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@sandeepmahajan11, what is your use case? Also, this space is primarily for issue tracking so I suggest you to leverage platforms like StackOverflow for such discussions. |
app works fine if I enable debug mode, and when I remove it from debug it got crashed, Not able to even see splash screen, Even I am not getting exact issue? |
Description
I am getting app crash on launch for both the platform android and ios, If I run app in debug mode then it works fine and as soon as removed from debug mode app getting crashed.
I am not getting clear log specific to a library or syntext, only gettine below error.
Error - undefined is not an object (evaluating 'window.location.href')
version - "react-native": "0.72.6",
Steps to reproduce
React Native Version
0.72.6
Affected Platforms
Runtime - Android, Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
aws-amplify/amplify-js#4708
Screenshots and Videos
The text was updated successfully, but these errors were encountered: