microsoft / microsoft/vscode-edge-devtools

error about using ES2023

Open
#2,699 7 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
827
Forks
358
Avg merge
20h 32m
Merged PRs (30d)
10

Description

This is a bit beyond me, but I've got a new React project I made with the vite template. I tried to update the tsconfig.json to target ES2023 and I'm getting this error below specifically from the Edge development tools. I have the latest typescript 5.6.3. I'm actually able to use the latest functions like array.toSorted and get docs on them inside of VS Code. It seems the Edge Dev Tools aren't happy. Don't know how to fix this.

// tsconfig.json
{
  "files": [],
  "references": [
    { "path": "./tsconfig.app.json" },
    { "path": "./tsconfig.node.json" }
  ],
  "compilerOptions": {
    "forceConsistentCasingInFileNames": true,
    "strict": true,
    "noUnusedLocals": true,
    "noUnusedParameters": false,
    "noFallthroughCasesInSwitch": true,
    "noUncheckedSideEffectImports": true,
    "types": ["vitest/importMeta"]
  }
}

// tsconfig.node.json
{
  "extends": "./tsconfig.json",

  "compilerOptions": {
    "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
    "target": "ES2023",
    "lib": ["ES2023"],
    "module": "ESNext",
    "skipLibCheck": true,

    /* Bundler mode */
    "moduleResolution": "Bundler",
    "allowImportingTsExtensions": true,
    "isolatedModules": true,
    "moduleDetection": "force",
    "noEmit": true
  },
  "include": ["vite.config.ts"]
}

'compilerOptions/target' must be equal to one of the allowed values 'ES3, ES5, ES6, ES2015, ES2016, ES2017, ES2018, ES2019, ES2020, ES2021, ES2022, ESNext'. Value found '"ES2023"'. Or 'compilerOptions/target' must match pattern '^([Ee][Ss]([356]|(20(1[56789]|2[012]))|[Nn][Ee][Xx][Tt]))$'. Value found 'ES2023'

/Source/hot% npm list typescript
hot@0.0.0 /Users/justinmagaram/Source/hot
├─┬ ts-node@10.9.2
│ └── typescript@5.6.3 deduped
├─┬ typescript-eslint@8.14.0
│ └─┬ @typescript-eslint/eslint-plugin@8.14.0
│   └─┬ ts-api-utils@1.4.0
│     └── typescript@5.6.3 deduped
└── typescript@5.6.3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the tsconfig.node.json example and the reported compilerOptions/target validation error. Trace the Edge DevTools configuration validation that lists allowed target values, then verify that a project targeting ES2023 is accepted without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.