question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update `esbuild` to latest version (wrangler dev does not work on Android)

See original GitHub issue

What version of Wrangler are you using?

2.0.27

What operating system are you using?

Android

Describe the Bug

UPDATE: this is actually an esbuild bug: https://github.com/evanw/esbuild/issues/2640. Therefore, we can probably fix this either by not using esbuild’s watch feature or by fixing the bug in esbuild itself.

I realize I may be a freak for developing on Android, but alas I do and I’m unable to perform the quick Workers example on the readme.

The npx wrangler dev index.js command does run “successfully”, but it spam reloads and the server is inaccessible. SmartSelect_20220825-211751_Termux

Pretty much the same result whether or not I pass --local. A basic Express server runs fine on this device so I don’t think there’s anything wrong with my environment.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Resoniouscommented, Oct 28, 2022

Yeah okay sorry for the spam. I was able to reproduce this with just esbuild: esbuild --bundle --watch index.js.

I opened an issue on esbuild itself: https://github.com/evanw/esbuild/issues/2640 - once that’s fixed, all we need to do is update the esbuild dependency in Wrangler.

0reactions
jiesoucommented, Nov 24, 2022

This problem seems to still exist in the latest release (2.4.4)

Read more comments on GitHub >

github_iconTop Results From Across the Web

watch rebuilds code constantly (Android) · Issue #2640 - GitHub
On Android (aarch64, kernel 5.4.147), if I run esbuild --bundle index.js ... Update esbuild to latest version (wrangler dev does not work on ......
Read more >
Install/Update Wrangler · Cloudflare Workers docs
This is an installation guide for the new version of Wrangler. If you previously had Wrangler 1 installed or were working on a...
Read more >
esbuild global is not defined - You.com | The Search Engine You ...
Open side panel. evanw/esbuildUncaught ReferenceError: global is not defined#73 ... And then ran npm install followed by wrangler dev . A server was ......
Read more >
In Cloud Computing This Week [Sep 2nd 2022] - Hava.io
A round-up of everything happening in the cloud computing space this week Friday September 2nd 2022 from Hava and the world of AWS,...
Read more >
Scoop buckets by Github score
A searchable directory of buckets for the scoop package manager for Windows.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found