Giter VIP home page Giter VIP logo

Comments (7)

dasois avatar dasois commented on August 22, 2024

@quantuminformation please use unminified js and provide the error-stack again. Also name the requested file.

from ngprogress.

victorb avatar victorb commented on August 22, 2024

@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.

uo-lca avatar uo-lca commented on August 22, 2024

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.

moneytree-doug avatar moneytree-doug commented on August 22, 2024

@uo-lca I have the same issue, were you able to find a fix?

from ngprogress.

moneytree-doug avatar moneytree-doug commented on August 22, 2024

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.

victorb avatar victorb commented on August 22, 2024

@moneytree-doug could you provide a test case? I haven't been able to reproduce this so far...

from ngprogress.

victorb avatar victorb commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.