Giter VIP home page Giter VIP logo

Comments (6)

sholladay avatar sholladay commented on May 12, 2024 2

@husayt that's what we had previously. You can use ky-universal v0.8.2 or below if you need CommonJS support. We dropped it because Node 14 and above support ES modules and that's what everything should be going forward. That matters because as of last October, Node 14 is the active LTS version. We waited long enough, it is time for the community to make the transition. Tell the Next.js folks you want ESM support.

from ky-universal.

sindresorhus avatar sindresorhus commented on May 12, 2024

I think it would be better to ask this on the Next.js support channels. This package is a valid ESM package.

from ky-universal.

husayt avatar husayt commented on May 12, 2024

This is not a next related issue. But rather seems that ky-universal has not got commonjs bundle.

to use from node with require it need to have a commonjs bundle. Currently it only has esm and browser bundles. Would be great to add commonjs output too.

from ky-universal.

husayt avatar husayt commented on May 12, 2024

Thanks for providing wider context to this. This makes sense now.

from ky-universal.

rommyarb avatar rommyarb commented on May 12, 2024

Any temporary solution?

from ky-universal.

sholladay avatar sholladay commented on May 12, 2024

@rommyarb yes, I would recommend doing npm install [email protected] [email protected]

Those versions support CommonJS and should work fine.

from ky-universal.

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.