R
Railway17mo ago
mina

Typescript build fails - incorrect type inference

Hello, trying to build the project https://github.com/datner/renu with NixPaxks 1.6.1. It used to be working fine. But recently started to get Typescript errors that do not happen on local build. Typescript is inferring wrong types to variables. Anyone familiar with something like that?
36 Replies
Percy
Percy17mo ago
Project ID: N/A
mina
mina17mo ago
N/A This issue happens locally as well as on Codebuild/Flightcontrol
jr
jr17mo ago
Interesting. What version of Nixpacks did it last work?
alex
alex17mo ago
Locally with nixpacks?
jr
jr17mo ago
I am having issues building the repo locally (without Nixpacks). It seems like the repo needs a very specific version Node (18.13 doesn't work but 18.15 gets further in the build?). I see the typescript error when using Nixpacks locally, but being unable to get it to build locally without Nixpacks makes me think that it is a code issue
mina
mina17mo ago
Yes
alex
alex17mo ago
Ah ok but it’s fine building with tsc in a local environment? What node version are you using
mina
mina17mo ago
So builds locally without NixPacks Fails to build locally with NixPacks
alex
alex17mo ago
What node version
mina
mina17mo ago
Without NixPacks 18.15 or 18.16 work With NixPacks I can only get 18.12
alex
alex17mo ago
Do you use any global packages Dockerfile will fix that issue
mina
mina17mo ago
You mean build using Dockerfile? Yeah sure, but this is not my goal coming here 😅
Brody
Brody17mo ago
thats fair, might be best to fix the code issue than
alex
alex17mo ago
Yeah I mean that will fix the problem but like jr said if you need a specific version it might be a code issue
Brody
Brody17mo ago
or code incompatibilities
Want results from more Discord servers?
Add your server