Giter VIP home page Giter VIP logo

Comments (4)

bobgear-eic avatar bobgear-eic commented on September 17, 2024 1

@wawyed Thank you!
It's some pretty old code that I'm returning to and I never dreamed that I'd done this to the prototype!
I've been puzzling over this for hours and I had no recollection of it being right there in my own code - so thanks very much for the tip!

from core.

bobgear-eic avatar bobgear-eic commented on September 17, 2024

I am seeing the same thing in the StateParams.prototype.$inherit() function.

As the image below shows, the for on line 24 has iterated past a valid "#" parameters and then carries on to a key named "objectPresent", which is a property of the prototype. This return undefined and then the error when attempting to get the "inherit" property.
image

I'm trying to upgrade my hybrid application to Angular 16. Could this possibly be a version incmpatibility? This is what I have:
"@uirouter/angular": "^12.0.0",
"@uirouter/angular-hybrid": "^16.0.0",
"@uirouter/angularjs": "^1.1.0",
"@uirouter/core": "^6.1.0",
"@uirouter/rx": "^1.0.0",
"@uirouter/visualizer": "^7.2.1",
"angular-ui-router": "^1.0.29",
"angular": "~1.5.0",

Any help/advice gratefully received

Thanks

from core.

wawyed avatar wawyed commented on September 17, 2024

I believe this is the same as angular-ui/ui-router#3851 . You probably have custom prototype methods on the array that for some reason have been defined as enumerable. You should use Object.defineProperty (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty) instead

from core.

wawyed avatar wawyed commented on September 17, 2024

This should be now fixed in 6.1.1

from core.

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.