Comments (4)
temporary fix:
$ sed -i '/performance.markResourceTiming/d' shims.js
this removes the offending line.
i run in in docker after build.
from bun.
Any updates on this?
I'm running into this same issue using SvelteKit and @sveltejs/adapter-cloudflare
.
from bun.
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.
+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)
- bun crashes
- no idea ? HOT 1
- `http.Agent()` keepalive not working
- Error in Bun compiler when building with --compile parameter
- Bun doesn't compile worker script in single-file executable
- `expect.toThrow()` fails with `expect.any()`
- `bun run --bun docs` fails to run package.json `docs` script HOT 2
- Bun test runner cannot find Astro generated types
- Replacing variable value causes error: Attempted to assign to readonly property.
- bun install failed HOT 2
- run `bun build --minify .\src\a.ts --compile` failed
- Running --inspect and --hot together causes the debugger to slow down after each hot reload
- --packages external not working as expected HOT 2
- Headers has incomplete type definition
- crash when using ffi-napi node package
- napi bug
- When using bun fetch (url, {proxy: 'xxxx'}) as a proxy crawler, this happens after hundreds of requests, and after several attempts
- Bun package.json scripts overriding
- Cant use or install Bun from Nigeria and probably other countries without using a VPN
- Assertion error when installing multiple global tools from Git
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bun.