Giter Site home page Giter Site logo

Comments (3)

Caleb-T-Owens avatar Caleb-T-Owens commented on August 15, 2024

The reason importmap-rails makes an API request when unpinning packages, is so that it can tell if there are any dependencies it needs to remove at the same time.

It seems like POSTing https://api.jspm.io/generate with the body

{
    "install": [ "uikit-icons" ],
    "flattenScope": true,
    "env": [ "module" ]
}

just freezes. @guybedford would you have any idea what is causing this? Looking at the dependencies on NPM, there are less than 10 dependencies/subdependencies.

from importmap-rails.

guybedford avatar guybedford commented on August 15, 2024

@Caleb-T-Owens thanks for the ping, I'll look into it when I can, may not have time this weekend so might need to defer to next.

from importmap-rails.

guybedford avatar guybedford commented on August 15, 2024

@Caleb-T-Owens this package is now generating, although the generated import map is just an empty module because the package wasn't configured for a modular build with a valid "main" or "exports" CommonJS or ECMAScript module to execute.

For packages that aren't working like this, there is also the JSPM overrides repo which can be used to override the package.json configurations for packages that don't define their entry points correctly although this is very much a last resort when there are no other options - https://github.com/jspm/overrides.

from importmap-rails.

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.