Coder Social home page Coder Social logo

SystemJS compatibility about ng2-idle HOT 5 CLOSED

moribvndvs avatar moribvndvs commented on July 21, 2024
SystemJS compatibility

from ng2-idle.

Comments (5)

IEvangelist avatar IEvangelist commented on July 21, 2024

In looking at this more closely, it might have something to do with me attempting to use the bundle *.umd.js?

In fact, I just changed my systemjs.config.js to use the non-bundled approach and it works. 😢

Perhaps, the bundling is the issue.

from ng2-idle.

moribvndvs avatar moribvndvs commented on July 21, 2024

JavaScript bundling/loader fatigue is real. I'll try working through the Quickstart and see if I can shake this loose.

from ng2-idle.

patrickracicot avatar patrickracicot commented on July 21, 2024

@IEvangelist How I got it to work is to impour the min of ng2-idle in my index.html.
Then for the map configuration I add ng2-idle like this: 'ng2-idle': 'node_modules/ng2-idle'
Finally in the packages configuration I add ng2-idle like this: 'ng2-idle': { main: 'index.js', defaultExtension: 'js' }

from ng2-idle.

mdsauer avatar mdsauer commented on July 21, 2024

Using the alpha 18 I am getting "Cannot read property 'forRoot' of undefined(…)" on the Ng2IdleModule. I am trying to add ng2-idle to the quickstart project. I followed @patrickracicot but I get the error with or without including the min in my index.html.

from ng2-idle.

moribvndvs avatar moribvndvs commented on July 21, 2024

I've refactored this module heavily. I've switched to providing a UMD bundle (as well as plain old ES5 source) in the package. That will hopefully sort this problem. Please refer to the README and CHANGELOG for more information.

from ng2-idle.

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.