Git Product home page Git Product logo

Comments (4)

LazerJesus avatar LazerJesus commented on July 19, 2024 2

temporary fix:

$ sed -i '/performance.markResourceTiming/d' shims.js

this removes the offending line.
i run in in docker after build.

from bun.

jprinaldi avatar jprinaldi commented on July 19, 2024

Any updates on this?

I'm running into this same issue using SvelteKit and @sveltejs/adapter-cloudflare.

from bun.

overestimate avatar overestimate commented on July 19, 2024

This issue blocks anything that depends on undici, which has 8,755,626 weekly downloads at the time of writing.

Updated to provide more useful information, old comment left for posterity Minimal reproduction for a common scenario: 1. Run `bunx wrangler -v` once (to mitigate `error: postinstall script from "esbuild" exited with 1`) 2. Run `bunx wrangler login` 3. Press "Allow" on permissions grant page to trigger the callback to Wrangler 4. Wrangler fails with `TypeError: performance.markResourceTiming is not a function. (In 'performance.markResourceTiming(timingInfo, originalURL.href, initiatorType, globalThis2, cacheState)', 'performance.markResourceTiming' is undefined)`

Any time Cloudflare's Wrangler needs to get data from a callback URI, it will crash and burn. This is not ideal for local Workers development.

There may be other issues blocking Wrangler from running, but this is the most apparent.

from bun.

LazerJesus avatar LazerJesus commented on July 19, 2024

+1
this blocks adoption of bun for svelte based applications, which has gazillions of minutely downloads at the time of writing.

from bun.

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.