Verify canary release
Provide environment information
Operating System:
Platform: linux
Arch: x64
Version: #64-Ubuntu SMP Thu Jan 5 11:43:13 UTC 2023
Binaries:
Node: 18.14.0
npm: 9.3.1
Yarn: 1.22.19
pnpm: 7.28.0
Relevant packages:
next: 13.2.4-canary.4
eslint-config-next: 13.2.3
react: 18.2.0
react-dom: 18.2.0
Which area(s) of Next.js are affected? (leave empty if unsure)
CLI (create-next-app)
Link to the code that reproduces this issue
if necessary i will create one
To Reproduce
pnpm create next-app . --experimental-app
- edit
tsconfig.json and change ".next/types/**/*.ts" to "./.next/types/**/*.ts"
pnpm run dev
cat tsconfig.json, which has:
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
"./.next/types/**/*.ts",
".next/types/**/*.ts"
],
Describe the Bug
next.js automatically adds .next/types/**/*.ts to tsconfig.json#include.
however, it also does this when i already have ./.next/types/**/*.ts in tsconfig.json#include. (note that this path starts with ./)
Expected Behavior
next.js should avoid adding duplicate entries to tsconfig.json#include
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
NEXT-792
Verify canary release
Provide environment information
Operating System: Platform: linux Arch: x64 Version: #64-Ubuntu SMP Thu Jan 5 11:43:13 UTC 2023 Binaries: Node: 18.14.0 npm: 9.3.1 Yarn: 1.22.19 pnpm: 7.28.0 Relevant packages: next: 13.2.4-canary.4 eslint-config-next: 13.2.3 react: 18.2.0 react-dom: 18.2.0Which area(s) of Next.js are affected? (leave empty if unsure)
CLI (create-next-app)
Link to the code that reproduces this issue
if necessary i will create one
To Reproduce
pnpm create next-app . --experimental-apptsconfig.jsonand change".next/types/**/*.ts"to"./.next/types/**/*.ts"pnpm run devcat tsconfig.json, which has:Describe the Bug
next.js automatically adds
.next/types/**/*.tstotsconfig.json#include.however, it also does this when i already have
./.next/types/**/*.tsintsconfig.json#include. (note that this path starts with./)Expected Behavior
next.js should avoid adding duplicate entries to
tsconfig.json#includeWhich browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
NEXT-792