Skip to content
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

Cannot run examples #80

Closed
nick opened this issue Feb 19, 2015 · 22 comments
Closed

Cannot run examples #80

nick opened this issue Feb 19, 2015 · 22 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@nick
Copy link

nick commented Feb 19, 2015

I just pulled the latest commits and when I try to run the UIExplorer example I get this:

screen shot 2015-02-19 at 8 51 21 am

Also get this in the log:

2015-02-19 08:49:11.725 UIExplorer[39524:4212632] CLTilesManagerClient: initialize, sSharedTilesManagerClient
2015-02-19 08:49:11.727 UIExplorer[39524:4212632] CLTilesManagerClient: init
2015-02-19 08:49:11.727 UIExplorer[39524:4212632] CLTilesManagerClient: reconnecting, 0x7fada40806e0
RCTJSLog> "Error: 
 stack: http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:1949:29
require@http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:243:30
http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:1326:22
require@http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:243:30
http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:1136:36
require@http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:243:30
http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:1088:20
require@http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:243:30
http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:1025:24
require@http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:243:30
http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:983:31
require@http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:243:30
http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:938:20
require@http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:243:30
applyWithGuard@http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:871:25
require@http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:194:39
global code@http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:33154:9
 line: 1949
 message: Can't find variable: process", {"line":1949,"column":29,"sourceURL":"http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle"}
RCTJSLog> "Error: 
 stack: ModuleError@http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:105:23
require@http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:206:28
http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:20370:22
require@http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:243:30
http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:20334:35
require@http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:243:30
applyWithGuard@http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:871:25
require@http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:194:39
global code
 line: 208
 message: Requiring module "warning" which threw an exception", {"name":"ModuleError","message":"Requiring module \"warning\" which threw an exception","stack":"ModuleError@http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:105:23\nrequire@http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:206:28\nhttp://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:20370:22\nrequire@http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:243:30\nhttp://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:20334:35\nrequire@http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:243:30\napplyWithGuard@http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:871:25\nrequire@http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle:194:39\nglobal code","framesToPop":2,"line":208,"column":8,"sourceURL":"http://localhost:8081/Examples/UIExplorer/UIExplorerApp.includeRequire.runModule.bundle"}
@amasad
Copy link
Contributor

amasad commented Feb 19, 2015

Can you try resetting the cache?
The easiest way to do this is to bump the version here: https://github.com/facebook/react-native/blob/master/packager/react-packager/package.json#L3

@nick
Copy link
Author

nick commented Feb 20, 2015

Checking out a fresh copy of the repo did the trick

@nick nick closed this as completed Feb 20, 2015
@amasad
Copy link
Contributor

amasad commented Feb 20, 2015

was that copy at a different path?

@nick
Copy link
Author

nick commented Feb 20, 2015

Yea. I tried cleaning the cache on the old one but it didn't seem to work.

@amasad
Copy link
Contributor

amasad commented Feb 20, 2015

New path also means new cache. I'll bump the version and also expose a way
to clear the cache from the command line.

On Thursday, February 19, 2015, Nick Poulden [email protected]
wrote:

Yea. I tried cleaning the cache on the old one but it didn't seem to work.


Reply to this email directly or view it on GitHub
#80 (comment)
.

@kennydee
Copy link
Contributor

kennydee commented Mar 5, 2015

Got exactly the same issue this morning, on all the example project (after trying to use the activityIndicatorIOS).
Forced to use a copy on another path too.

I'm not familiar with Xcode so how can i clean the cache on the previous one which has the same bug than this issue ?

Thanks

@jaygarcia
Copy link
Contributor

SHIFT + CMD + K to do an app clean. CMD + R to rebuild

@kennydee
Copy link
Contributor

kennydee commented Mar 5, 2015

Thanks for the tips, but it didn't fix the red screen of this issue, even after exiting Xcode, ´rm -rf ´ and git clone and npm install again on the same folder name :)

@tadeuzagallo
Copy link
Contributor

Hey @kennydee are you getting the exact same error message?
Because you mentioned you are using activityIndicatorIOS, I've pushed a commit yesterday dropping the size constants, it should replaced by strings, here are the changes on the example file.

@kennydee
Copy link
Contributor

kennydee commented Mar 6, 2015

Yes, exactly the same (both screenshot and log error). Even after removing the line of the activityIndicatorIOS, the problem is still there.
The only way i found was to get a fresh copy in another folder.

@kennydee
Copy link
Contributor

Any other people here having the same troubles than me ? (the red screen of this issue when running exemples). Thanks

@ide
Copy link
Contributor

ide commented Mar 10, 2015

Try Reset Content and Settings in the simulator since it can sometimes be buggy.

@kennydee
Copy link
Contributor

Thanks for suggestion.
I tried Reset Content and Setting multiple times and it did not fix the issue.
I even tried to rm -rf all the folder and do a new git clone in the same folder, clean cache, and having the same red screen than the screenshot.

@vjeux vjeux reopened this Mar 14, 2015
@vjeux
Copy link
Contributor

vjeux commented Mar 14, 2015

Just got this as well :(

@vjeux
Copy link
Contributor

vjeux commented Mar 15, 2015

It turns out that when you npm install the website folder, it includes some node_modules that mess up the packager. I have a fix coming

@vjeux
Copy link
Contributor

vjeux commented Mar 16, 2015

Fixed by #152

@vjeux vjeux closed this as completed Mar 16, 2015
@kennydee
Copy link
Contributor

Thanks @vjeux 👍

@mschipperheyn
Copy link

Getting this issue against current version on a cleanly created project

    2015-06-06 13:32:25.968 [error][tid:com.facebook.React.JavaScript] "Error: 
 stack: keyMirror@http://localhost:8081/index.ios.bundle:1717:28
http://localhost:8081/index.ios.bundle:1624:34
require@http://localhost:8081/index.ios.bundle:245:30
http://localhost:8081/index.ios.bundle:1404:29
require@http://localhost:8081/index.ios.bundle:245:30
http://localhost:8081/index.ios.bundle:1257:31
require@http://localhost:8081/index.ios.bundle:245:30
http://localhost:8081/index.ios.bundle:1177:54
require@http://localhost:8081/index.ios.bundle:245:30
http://localhost:8081/index.ios.bundle:1131:20
require@http://localhost:8081/index.ios.bundle:245:30
applyWithGuard@http://localhost:8081/index.ios.bundle:885:25
require@http://localhost:8081/index.ios.bundle:196:39
global code@http://localhost:8081/index.ios.bundle:43774:9
 line: 1717
 message: Can't find variable: process", {"line":1717,"column":28,"sourceURL":"http://localhost:8081/index.ios.bundle"}
2015-06-06 13:32:25.971 [error][tid:com.facebook.React.JavaScript] "Error: 
 stack: http://localhost:8081/index.ios.bundle:2704:29
require@http://localhost:8081/index.ios.bundle:245:30
http://localhost:8081/index.ios.bundle:21041:22
require@http://localhost:8081/index.ios.bundle:245:30
http://localhost:8081/index.ios.bundle:21000:35
require@http://localhost:8081/index.ios.bundle:245:30
applyWithGuard@http://localhost:8081/index.ios.bundle:885:25
require@http://localhost:8081/index.ios.bundle:196:39
global code
 line: 2704
 message: Can't find variable: process", {"line":2704,"column":29,"sourceURL":"http://localhost:8081/index.ios.bundle"}

@mschipperheyn
Copy link

Hmm, after trying various things. A full restart solved it

@chumster
Copy link

chumster commented Jun 7, 2015

Interesting... now I'm see it:

2015-06-06 19:23:52.022 [error][tid:com.facebook.React.JavaScript] "Error: 
 stack: http://192.168.1.64:8081/index.ios.bundle:2047:29
require@http://192.168.1.64:8081/index.ios.bundle:245:30
http://192.168.1.64:8081/index.ios.bundle:1424:22
require@http://192.168.1.64:8081/index.ios.bundle:245:30
http://192.168.1.64:8081/index.ios.bundle:1234:36
require@http://192.168.1.64:8081/index.ios.bundle:245:30
http://192.168.1.64:8081/index.ios.bundle:1156:54
require@http://192.168.1.64:8081/index.ios.bundle:245:30
http://192.168.1.64:8081/index.ios.bundle:1127:20
require@http://192.168.1.64:8081/index.ios.bundle:245:30
applyWithGuard@http://192.168.1.64:8081/index.ios.bundle:885:25
require@http://192.168.1.64:8081/index.ios.bundle:196:39
global code@http://192.168.1.64:8081/index.ios.bundle:46141:9
 line: 2047
 message: Can't find variable: process", {"line":2047,"column":29,"sourceURL":"http://192.168.1.64:8081/index.ios.bundle"}

@dvcrn
Copy link
Contributor

dvcrn commented Sep 9, 2015

Is there a workaround for this? I just started having this issue as well

@jaredly
Copy link
Contributor

jaredly commented Nov 6, 2015

@amasad did you ever add an option to clear the cache?

@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 23, 2018
react-one pushed a commit to react-one/react-native that referenced this issue Sep 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests