-
Notifications
You must be signed in to change notification settings - Fork 30.7k
Closed
Closed
Copy link
Labels
TypeScriptRelated to types with Next.js.Related to types with Next.js.
Description
Verify canary release
- I verified that the issue exists in Next.js canary release
Provide environment information
$ next info
Operating System:
Platform: darwin
Arch: x64
Version: Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:22 PDT 2022; root:xnu-8020.121.3~4/RELEASE_X86_64
Binaries:
Node: 16.15.0
npm: 8.5.5
Yarn: 1.22.17
pnpm: 7.0.0
Relevant packages:
next: 12.1.7-canary.23
react: 18.1.0
react-dom: 18.1.0
What browser are you using? (if relevant)
N/A
How are you deploying your application? (if relevant)
N/A
Describe the Bug
Follow the instructions to install TypeScript, try starting the development server again.
View the generated tsconfig.json file:
Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy.ts
Expected Behavior
The generated tsconfig.json file should contain the moduleResolution key.
To Reproduce
# If you’re using npm
npm install --save-dev typescript @types/react @types/node
# If you’re using Yarn
yarn add --dev typescript @types/react @types/node
npm/yarn run dev
View the tsconfig.json file
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
TypeScriptRelated to types with Next.js.Related to types with Next.js.
