Code Monkey home page Code Monkey logo

Comments (6)

QuiiBz avatar QuiiBz commented on August 29, 2024

Update: both the pages directory and the app directory are working!

https://twitter.com/tomlienard/status/1613229200789438464

from lagon.

QuiiBz avatar QuiiBz commented on August 29, 2024

Update: created #612 because Next.js now expects AsyncLocalStorage to be present in the global scope.

from lagon.

QuiiBz avatar QuiiBz commented on August 29, 2024

Update: AsyncLocalStorage has been merged for a few weeks, but Next.js now expects the runtime to support imports (and specifically an implementation of Buffer from node:buffer), which we don’t have at all right now and would make the runtime even more complicated.

https://twitter.com/ascorbic/status/1648264283824742401?s=46&t=vptTziexWvl21M22w1Jv0w

from lagon.

pi0 avatar pi0 commented on August 29, 2024

Any reason not leveraging unjs/unenv or nitro to bundle output?

from lagon.

QuiiBz avatar QuiiBz commented on August 29, 2024

Great question! Implementing these APIs (AsyncLocalStorage, Buffer...) should be done in the runtime itself because it needs to be very performant. They will ultimately be implemented natively (instead of in JS-land right now) so it doesn't really make sense to use unenv now and remove it later.

from lagon.

pi0 avatar pi0 commented on August 29, 2024

Yes makes sense for ALS cannot be implemented in Userland. (unenv will also auto-detect such environments and use native soon. It only has a shim. But Buffer and other Node.js APIs used by next.js or user dependencies can possibly use can be leveraged unenv userland impl same as Nuxt.

from lagon.

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.