Build a Next.js Application with TypeScript

The issue was resolved by adding the following to the compiler options in the tsconfig.json file:

“moduleResolution”: “node”,

I added it just above “resolveJsonModule”: true

1 Like