Next Js project not deploying says I need packages that I have

Hi I have a project that is failing deployment. It is called ‘genuine-klepon-d083a9’. It is a Next Js project.

I am getting the error ‘It looks like you"re trying to use TypeScript but do not have the required package(s) installed.’

‘Please install @types/react and @types/node by running:
npm install --save-dev @types/react @types/node’

But I already have these packages installed. I was able to build my project locally and deploy it to Vercel with no problems so I think this might be an issue with Netlify. Thanks.

Move those to dependencies instead of devDependencies.

Hi Sorry for getting back to you so late. I’ve been working on the project in Vercel, but I would like to get back to Netlify. I added both of the types packages to the dependencies but it hasn’t fixed the issue.

So I created a new project on Netlify and used the same Github repo to deploy and it now works after adding the types to the dependencies. It seemed to not be recognizing that I made a change on the other project.