Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deno check. RangeError: Maximum call stack size exceeded #27561

Open
Reububble opened this issue Jan 6, 2025 · 3 comments
Open

deno check. RangeError: Maximum call stack size exceeded #27561

Reububble opened this issue Jan 6, 2025 · 3 comments
Labels
needs info needs further information to be properly triaged tsc related to the TypeScript tsc compiler

Comments

@Reububble
Copy link

Version: Deno 2.1.4

I'm trying to type check a file with deno check --config=web.jsonc ./src/index.tsx. After a short delay the following error is thrown

error: Uncaught RangeError: Maximum call stack size exceeded
    at resolveNameHelper (ext:deno_tsc/00_typescript.js:1:1)
    at resolveEntityName (ext:deno_tsc/00_typescript.js:1:1)
    at trackExistingEntityName (ext:deno_tsc/00_typescript.js:1:1)
    at tryVisitTypeQuery (ext:deno_tsc/00_typescript.js:1:1)
    at visitExistingNodeTreeSymbolsWorker (ext:deno_tsc/00_typescript.js:1:1)
    at visitExistingNodeTreeSymbols (ext:deno_tsc/00_typescript.js:1:1)
    at visitNode (ext:deno_tsc/00_typescript.js:1:1)
    at tryReuseExistingTypeNodeHelper (ext:deno_tsc/00_typescript.js:1:1)
    at tryReuseExistingNonParameterTypeNode (ext:deno_tsc/00_typescript.js:1:1)
    at createAnonymousTypeNode (ext:deno_tsc/00_typescript.js:1:1)

I'm working to make a minimum reproducible example, but that may take a while. In the meantime, I suspect there's more information to be gathered than the above stacktrace - which might be enough to find the issue - but I'm happy to provide that. Funnily enough, I can deno check all the immediate dependencies of ./src/index.tsx and it works as expected each time. According to deno info ./src/index.tsx There are 179 unique dependencies, 611.24KB of size, and all of the files are local. I'm using https://deno.land/x/[email protected]/mod.js to transpile to javascript, and the generated code runs in the browser fine.

@bartlomieju bartlomieju added needs info needs further information to be properly triaged tsc related to the TypeScript tsc compiler labels Jan 6, 2025
@bartlomieju
Copy link
Member

Yeah, we're gonna need some sort of a reproduction (a repository would be fine) to be able to track the problem here.

@Reububble
Copy link
Author

I'll see what I can do

@Reububble
Copy link
Author

I can't reproduce this issue anymore. I ran deno check -r --config=web.jsonc ./src/index.tsx and it worked as expected. Now when I run the original command nothing happens. Nothing is logged and exit code is 0. I am satisfied enough with using -r to not open a new issue about that though, considering I still don't have a minimum reproducible example.

Does that explain what went wrong at all? Happy to close this issue if there's nothing else to do here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs info needs further information to be properly triaged tsc related to the TypeScript tsc compiler
Projects
None yet
Development

No branches or pull requests

2 participants