microsoft / microsoft/TypeScript

Maximum call stack size exceeded

Aperta
#62,218 3 commenti 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Domain: API Needs More Info
Lingua principale
Go
Stelle
111k
Fork
14.3k
Merge medio
2g 4h
PR unite (30g)
132

Descrizione

🔎 Search Terms

call stack exceeded

🕗 Version & Regression Information
  • This changed between versions 5.8.3 and 5.9.2
  • This changed in commit or PR _______
  • This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
  • I was unable to test this on prior versions because _______
⏯ Playground Link

No response

💻 Code
// Your code here
🙁 Actual behavior

We noticed that there's a potential regression between the versions 5.8.3 and 5.9.2.

When allowing Dependabot to bump from 5.8.3 to 5.9.2, we started seeing the yarn astro check command failing with the following output:

🤟 ~/Sites/[project] (dependabot/npm_and_yarn/dev/typescript-5.9.2): yarn astro check          
19:42:18 [content] Syncing content
19:42:18 [content] Synced content
19:42:18 [types] Generated 103ms
19:42:18 [check] Getting diagnostics for Astro files in project...
Maximum call stack size exceeded
  Location:
    [project]/node_modules/typescript/lib/typescript.js:3371:46
  Stack trace:
    at String.replace (<anonymous>)
    at getCanonicalFileName ([project]/node_modules/typescript/lib/typescript.js:129084:17)
    at toPath3 ([project]/node_modules/typescript/lib/typescript.js:127606:12)
    at findSourceFile ([project]/node_modules/typescript/lib/typescript.js:128749:20)
    at findSourceFile ([project]/node_modules/typescript/lib/typescript.js:128749:20)
🙂 Expected behavior

I would expect the yarn astro check command to succeed with hopefully no type issues since nothing else was changed in the PR other than the version being bumped.

Additional information about the issue

No response

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia riproducendo il malfunzionamento con TypeScript 5.8.3 e 5.9.2 usando il comando segnalato yarn astro check. Ispeziona le posizioni dello stack trace in node_modules/typescript/lib/typescript.js, in particolare getCanonicalFileName, toPath3 e findSourceFile; il lavoro è completato quando la regressione è stata identificata e il check può completarsi senza un errore di maximum call stack.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
typescript
Ambito
compilers
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.