Deploy is hitting Typescript Errors, but Yarn Run build and yarn run lint don't produce these errors
I'm trying to debug an issue where I can
yarn build
, and yarn lint
locally and all is fine, but when I deploy it hits a Typescript error in one of the NodeJS Packages. Error is the following:
globalThis.Headers is not a constructor
I'm not super familiar with Nixpacks but I did what was written in the docs to make sure I have a similar Node Version:
Specifying the engines.node field in package.json
I changed that to:
Anyone have any ideas what might be going on here? It's still erroring out when I deploy to Railway7 Replies
Project ID:
N/A
You might find these helpful:
- Sudden TS Node.js Build Errors
- Crash when deploying SvelteKit + Lucia...works on localhost
- 13 4.188 Error Unable to establish a connection to query-engine-node-api library.
⚠️ experimental feature
I'm confused as to why in the build logs Nixpacks still looks like it's not using the Engines value provided?
ah ok it did use it
And we're up1 I solved the issue for the typescript error - it was indeed the nodeversion that Nixpacks uses by default. I'm curious why y'all opted for such a low Node version - I think it was set to 12 by default?