R
Railway9mo 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
Percy9mo ago
Project ID: d71e40fe-2a90-4d32-a360-14ef1088f139
drawlin
drawlin9mo ago
d71e40fe-2a90-4d32-a360-14ef1088f139
Brody
Brody9mo ago
where you ever using typescript?
drawlin
drawlin9mo ago
nope, not that i can remember at least for this project
Brody
Brody9mo ago
send your package.json?
drawlin
drawlin9mo ago
I gotcha give me a few minutes I just stepped out, I’ll send it over
drawlin
drawlin9mo ago
@Brody here is my package.json
No description
Brody
Brody9mo ago
delete your lock file then run npm install
drawlin
drawlin9mo ago
Should I do that on my local version and then push it to Github?
Brody
Brody9mo ago
yes
drawlin
drawlin9mo ago
I tried that and I'm getting the same result, should I just paste my entire error file here?
Brody
Brody9mo ago
add this to a nixpacks.toml file in your project
[phases.install]
cmds = ['npm install']
[phases.install]
cmds = ['npm install']
drawlin
drawlin9mo ago
I think that worked... it says it's publishing the image now