Comments (7)
@quantuminformation please use unminified js and provide the error-stack again. Also name the requested file.
from ngprogress.
@quantuminformation Yes, providing some more information would be helpful. This looks like it's coming from somewhere else. Unless we can re-produce it, it's really difficult to fix if there is a problem.
So unless some new information comes from you or someone else with the same problem, I'll close this one.
from ngprogress.
I see a similar unit test error after adding ngProgress to a controller. I don't see any errors when running the app. I just get an error in the unit test which instantiates the controller. Stepping through the unit test in debugger, I see the error after the controller executes
ngProgress.complete();
Error: Unexpected request: GET components/resources/scenarios.json
No more request expected
at $httpBackend (http://localhost:9877/base/app/bower_components/angular-mocks/angular-mocks.js:1180:9)
at sendReq (http://localhost:9877/base/app/bower_components/angular/angular.js:8355:9)
at $get.serverRequest (http://localhost:9877/base/app/bower_components/angular/angular.js:8088:16)
at deferred.promise.then.wrappedCallback (http://localhost:9877/base/app/bower_components/angular/angular.js:11573:81)
at deferred.promise.then.wrappedCallback (http://localhost:9877/base/app/bower_components/angular/angular.js:11573:81)
at http://localhost:9877/base/app/bower_components/angular/angular.js:11659:26
at Scope.$get.Scope.$eval (http://localhost:9877/base/app/bower_components/angular/angular.js:12702:28)
at Scope.$get.Scope.$digest (http://localhost:9877/base/app/bower_components/angular/angular.js:12514:31)
at Scope.$get.Scope.$apply (http://localhost:9877/base/app/bower_components/angular/angular.js:12806:24)
at Object.updateCount (http://localhost:9877/base/app/bower_components/ngprogress/build/ngProgress.js:70:32)
Error: Declaration Location
from ngprogress.
@uo-lca I have the same issue, were you able to find a fix?
from ngprogress.
Here's how I produced this issue. As soon as I commented out the color statement, my Jasmine tests worked.
angular.module("myApp", [
"ngCookies"
"ngResource"
"ngRoute"
"ngIdle"
"ngProgress"
"ui.router"
"ui.bootstrap"
]).run(($state, $rootScope, $log, ngProgress) ->
ngProgress.color('#71C274')
)
from ngprogress.
@moneytree-doug could you provide a test case? I haven't been able to reproduce this so far...
from ngprogress.
Closing this since I have no idea about how to reproduce. Please comment if you manage to come up with a test case.
from ngprogress.
Related Issues (20)
- website HOT 4
- Update link reference HOT 1
- Fix naming in bower.json HOT 1
- Broken API? HOT 1
- Typescript definition file HOT 1
- Versions missing from npm HOT 9
- 'main' referenced in package.json doesn't exist. HOT 4
- setParent() not work HOT 4
- Bower Install Warning HOT 2
- ngProgress injected is not the service but the factory HOT 6
- ngProgressFactory function misses it's dependencies HOT 3
- ngProgressFactory injection failed HOT 1
- Documentation issue HOT 1
- progressbar.complete() shouldn't animate unless it has been started
- first param in $timeout&progress speed HOT 1
- TypeError: 'undefined' is not an object (evaluating 'this.parent.appendChild')
- after deploy code in enviroment - ngprogress version not found HOT 1
- NPM Version Request HOT 4
- IE not reflecting DOM updates and progress bar is delayed until the page is nearly done loading HOT 1
- Request for new maintainer HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngprogress.