R
Railway15mo ago
drawlin

Failure message while deploying NextJS application

It seems like it's expecting a Typescript file during my deployment however my application is not using Typescript. Here's a screenshot of the error I'm having, any assistance would be very much appreciated.
No description
15 Replies
Percy
Percy15mo ago
Project ID: d71e40fe-2a90-4d32-a360-14ef1088f139
drawlin
drawlinOP15mo ago
d71e40fe-2a90-4d32-a360-14ef1088f139
Brody
Brody15mo ago
where you ever using typescript?
drawlin
drawlinOP15mo ago
nope, not that i can remember at least for this project
Brody
Brody15mo ago
send your package.json?
drawlin
drawlinOP15mo ago
I gotcha give me a few minutes I just stepped out, I’ll send it over
drawlin
drawlinOP15mo ago
@Brody here is my package.json
No description
Brody
Brody15mo ago
delete your lock file then run npm install
drawlin
drawlinOP15mo ago
Should I do that on my local version and then push it to Github?
Brody
Brody15mo ago
yes
drawlin
drawlinOP15mo ago
I tried that and I'm getting the same result, should I just paste my entire error file here?
Brody
Brody15mo ago
add this to a nixpacks.toml file in your project
[phases.install]
cmds = ['npm install']
[phases.install]
cmds = ['npm install']
drawlin
drawlinOP15mo ago
I think that worked... it says it's publishing the image now
Want results from more Discord servers?
Add your server