Danny Roberts
03/28/2023, 5:33 PMwrangler pages publish
I get the error in the screenshot.
The Build has been working fine with in dev using the node-compat flag. npx wrangler pages dev build --node-compat
I also followed the errors directions and added node_compat = true
to my wrangler.toml file.
I also have node_compat
set up in production & preview compatibility flags.
I would love help getting past this error and get back publishing. thank you 🙂
My Pages.dev: nftdev-igorandandre.pages.dev
My account ID: 596032e44d9793dca36eb2e347ab8eadSkye
03/28/2023, 5:36 PMnode:crypto
rather than just cryptoSkye
03/28/2023, 5:36 PM--compatibility-flags nodejs_compat
instead of --node-compat
for your dev commandSkye
03/28/2023, 5:37 PMnode-compat
and nodejs_compat
, is that node-compat
is a bunch of old polyfills provided by esbuild, which inflate your bundle size and can be unreliable, whereas nodejs_compat
is the new flag that provides built in APIs withh no cost to the size of your workerWalshy | Pages
03/28/2023, 5:59 PMSkye
03/28/2023, 6:00 PMSkye
03/28/2023, 6:00 PMDanny Roberts
03/28/2023, 6:14 PMSkye
03/28/2023, 6:16 PMbuffer
, util
, etcDanny Roberts
03/28/2023, 6:20 PMSkye
03/28/2023, 6:22 PMSkye
03/28/2023, 6:23 PMDanny Roberts
03/28/2023, 6:25 PMSkye
03/28/2023, 6:27 PMSkye
03/28/2023, 6:27 PMDanny Roberts
03/28/2023, 6:33 PMDanny Roberts
04/17/2023, 5:08 PMkian
04/17/2023, 5:25 PMDanny Roberts
04/17/2023, 5:33 PMPhilipA
05/20/2023, 10:43 AM