I have issue to run application on Expo. Application created from scratch in Expo XDK returns red screen with the following log:
undefined is not an object (evaluating ‘ExponentKeepAwake.activate’)
activate
C:\Users\xxxxxx.AD\Source\AWS-Research\YariloMobile\node_modules\expo\src\KeepAwake.js:26:20
I’m afraid I’m not sure what you mean. The KeepAwake module isn’t included in our new project source code. Are you saying you’ve made no changes to the code after creating a new project and it is throwing this error?
I just recreated project using Expo XDE. Cache is clear. Emulator has been restarted - same issue.
No proxy or firewall. Direct connection.
I can share screen if you have WebEx or so.
@boomza Sorry you are having this error To clarify:
You created a completely new project in XDE, and without making any changes, you are seeing the error undefined is not an object when you try to load it in the simulator.
If this is true, could you give us some additional information to help solve the problem:
The simulator/device you are using to view your app (ie) Genymotion, Apple Simulator, etc
Your os (ie) Windows 10, etc
Screenshots of the red screen stack trace, or anything you think will help
Any additional steps you took to get the error, if any
I am using Android simulator from Android Studio on windows 10.
But I think I found an issue. I changed Boot options from Quick boot on Cold boot. and it works now.
I found the issue. It is cache and network.
I assumed that if I built package I can debug and work with code locally without internet.
If I turn of internet after starting emulator - the error above has been produced.