Reputation: 71
I've been trying to deploy my next.js app on Vercel, but got "Type error: cannot find module '...' or its corresponding type declarations" error. My guess is it happened with local module(React Component) and .tsx and .ts files. Because I didn't get this error when I deployed the last version without typescript.
In development mode the app able to find the modules and execute the code effectively without any error.
Upvotes: 0
Views: 1956
Reputation: 11
I don't know if I'm too late. I hope this help :)
or you can look at this issue https://github.com/vercel/next.js/issues/11742
Upvotes: 1