Giter VIP home page Giter VIP logo

Comments (8)

gregoryagu avatar gregoryagu commented on August 24, 2024

Oddly, the error only occurs during the AutoRefresh. When calling update manually, it does not throw this error.

from aurelia-authentication.

doktordirk avatar doktordirk commented on August 24, 2024

I think that error got fixed meanwhile. It.s just not published on npm yet. You could try getting it from github directly or wait just s little until it.s published on npm

from aurelia-authentication.

doktordirk avatar doktordirk commented on August 24, 2024

@gregoryagu 3.8 is on npm now. Give it a try

from aurelia-authentication.

gregoryagu avatar gregoryagu commented on August 24, 2024

I updated to 3.8 using npm install.

However, I am getting an error when Aurelia initializes:

Unhandled rejection TypeError: Cannot read property 'origin' of undefined
    at Object.configure (webpack-internal:///aurelia-authentication:1729:38)
function configure(frameworkConfig, config) {
  if (!_aureliaPal.PLATFORM.location.origin) //Error Here

The debugger shows that PLATFORM is an object, but does not have a property called location.

from aurelia-authentication.

gregoryagu avatar gregoryagu commented on August 24, 2024

Have tried npm update but still same result.

from aurelia-authentication.

doktordirk avatar doktordirk commented on August 24, 2024

hmm: https://aurelia.io/docs/api/pal/interface/Platform
may there are forks? it uses aurelia-pal 1.8 to use PLATFORM.moduleName for webpack builds.
but then, PLATFORM.location had been there for some time. at a loss atm

from aurelia-authentication.

doktordirk avatar doktordirk commented on August 24, 2024

i tried again with my webpack build using chrome and edge and had no issues.

from aurelia-authentication.

gregoryagu avatar gregoryagu commented on August 24, 2024

Thank you. After wiping and re-installing node_modules, all good.

from aurelia-authentication.

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.