Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Running it in the Simulator, blank page #4

Closed
javaguirre opened this issue Apr 29, 2013 · 7 comments
Closed

Running it in the Simulator, blank page #4

javaguirre opened this issue Apr 29, 2013 · 7 comments

Comments

@javaguirre
Copy link

Hi! I tried to run it in the simulator, it just freezes with a blank page doing nothing and I have an AngularJS error, match is null in matchUrl:

Content JS ERROR at app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:5687 in anonymous: Error: match is null
matchUrl@app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:5002
@app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:5481
invoke@app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:2850
createInjector/instanceCache.$injector<@app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:2688
getService@app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:2810
invoke@app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:2828
createInjector/instanceCache.$injector<@app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:2688
getService@app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:2810
invoke@app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:2828
$CompileProvider/registerDirective/</<@app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:3656
forEach@app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:133
...

I have another error regarding $navigate, so I don't know which one is the one crashing the app.

Content JS ERROR at app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:5687 in anonymous: Error: Circular dependency: $navigate
getService@app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:2803
invoke@app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:2828
instantiate@app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:2860
createInjector/service/<@app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components
...

I'm using Firefox OS Simulator version 2.0.1

Thank you for the project, If you have any idea about how to fix it, please let me know. :-)

@janjongboom
Copy link
Contributor

Seems to be due to angular/angular.js#2112, but that's a rather old issue where a patch has been merged as well. Need to do some investigation.

@javaguirre
Copy link
Author

Thank you @janjongboom, I will do some research as well.

@javaguirre
Copy link
Author

I used the 1.0.5 version for Angular, I will check it with 1.0.6

@javaguirre
Copy link
Author

With AngularJS 1.0.6 I don't have this error, but I have another one, next.$route is undefined, I think the problem is in mobile-nav.js and not in Angular itself, I will look deeper there.

This is the error in case someone would need it.

Content JS ERROR at app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:5704 in anonymous: Error: next.$route is undefined
@app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/js/mobile-nav.js:120
Scope.prototype.$broadcast@app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:8261
updateRoute/<@app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:7417
qFactory/defer/deferred.promise.then/wrappedCallback@app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:6797
qFactory/defer/deferred.promise.then/wrappedCallback@app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:6797
qFactory/ref/<.then/<@app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:6834
Scope.prototype.$eval@app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:8011
Scope.prototype.$digest@app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:7876
Scope.prototype.$apply@app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:8097
done@app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:9111
completeRequest@app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:9274
createHttpBackend/</xhr.onreadystatechange@app://{2c09edd9-fae8-491e-a0e3-cda973a3831e}/components/angular/angular.js:9245

@janjongboom
Copy link
Contributor

@janjongboom
Copy link
Contributor

Upgraded master to angular 1.0.6.

@javaguirre
Copy link
Author

Works like a charm, thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants