Closed rajanchaudhari08 closed 6 months ago
Changing "moduleResolution" from "node" to "Bundler" in my tsconfig fixed it. Check if your project allows for changing the value without problems.
https://www.totaltypescript.com/tsconfig-cheat-sheet also recommends using either "NodeNext" or "Bundler" depending on your project.
Error:
Cannot find module '@t3-oss/env-nextjs' or its corresponding type declarations. There are types at '/<repo-path>/node_modules/@t3-oss/env-nextjs/dist/index.d.ts', but this result could not be resolved under your current 'moduleResolution' setting.
env.js
tsconfig.json
package.json