Any ideas why the deploy command would

Any ideas why the deploy command would work in the terminal, but fails if aliased as a package.json script? Works: wrangler pages deploy directly in the terminal. Fails: // package.json "pages:deploy": "wrangler pages deploy", OR "pages:deploy": "npx wrangler pages deploy", The same Wrangler version 4.12.0 is used globally and in the project.
4 Replies
JacobMGEvans
JacobMGEvans7d ago
What is your Node version and what compat flag do you have on for Wrangler config?
Unknown User
Unknown User6d ago
Message Not Public
Sign In & Join Server To View
jason
jasonOP6d ago
"compatibility_date": "2024-11-13",
"compatibility_flags": ["nodejs_compat"],
"compatibility_date": "2024-11-13",
"compatibility_flags": ["nodejs_compat"],
I get the same result with Node (npx) and Bun (bunx).
bun -v
1.2.5

node -v
v23.6.0
bun -v
1.2.5

node -v
v23.6.0
@Ponjimon not yet
JacobMGEvans
JacobMGEvans6d ago
what is the error you are getting in the terminal or logs?

Did you find this page helpful?