Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

Testing the ArcGIS online sample shows error view.then is undefined #350

Closed
malibeg opened this issue Jul 11, 2018 · 4 comments
Closed

Testing the ArcGIS online sample shows error view.then is undefined #350

malibeg opened this issue Jul 11, 2018 · 4 comments
Assignees
Labels

Comments

@malibeg
Copy link

malibeg commented Jul 11, 2018

Got error in Chrome when testing Arcgis sample for angular.js

I get same error when trying to integrate directive into my angular.js code.

angular.js:14800 TypeError: self.view.then is not a function
at angular-esri-map.js:421
at processQueue (angular.js:17169)
at angular.js:17217
at Scope.$digest (angular.js:18352)
at angular.js:18581
at completeOutstandingRequest (angular.js:6428)
at angular.js:6707 "Possibly unhandled rejection: {}"
(anonymous) @ angular.js:14800

@malibeg
Copy link
Author

malibeg commented Jul 11, 2018

When testing with arcgis api 4.6 it works ok. It gives this warning [esri.core.Promise] DEPRECATED: then() -- use .when(callback, errback) instead

@andygup
Copy link
Member

andygup commented Jul 16, 2018

@malibeg please note, this project is not actively being maintained: https://github.com/Esri/angular-esri-map#status and AngularJS has entered long term support. All of our current dev efforts are on Angular 5+ https://github.com/Esri/angular-cli-esri-map.

Pull requests are welcome if you have time to create one!

@andygup
Copy link
Member

andygup commented Jul 16, 2018

Oh, my bad. Thanks for the heads-up. We are addressing the broken sample over on developers.arcgis.com

@tomwayson
Copy link
Member

resolved in #351

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

No branches or pull requests

3 participants