infinitered / gluegun

A delightful toolkit for building TypeScript-powered command-line apps.
MIT License
2.96k stars 147 forks source link

I simply just installed it and asked to run the same documentation but it gives this error #773

Closed lucasdesouza-dev closed 1 year ago

lucasdesouza-dev commented 1 year ago

F:\Programacao\PlataformaGamer\plataforma-gamer\CLI react\CodeRevolution\coderevolution\node_modules\typescript\lib\typescript.js:43500 ts.Debug.assert(typeof typeReferenceDirectiveName === "string", "Non-string value passed to ts.resolveTypeReferenceDirective, likely by a wrapping package working with an outdated resolveTypeReferenceDirectives signature. This is probably not a problem in TS itself."); ^ Error: Debug Failure. False expression: Non-string value passed to ts.resolveTypeReferenceDirective, likely by a wrapping package working with an outdated resolveTypeReferenceDirectives signature. This is probably not a problem in TS itself. at Object.resolveTypeReferenceDirective (F:\Programacao\PlataformaGamer\plataforma-gamer\CLI react\CodeRevolution\coderevolution\node_modules\typescript\lib\typescript.js:43500:18) at F:\Programacao\PlataformaGamer\plataforma-gamer\CLI react\CodeRevolution\coderevolution\node_modules\ts-node\src\index.ts:623:55 at Array.map () at Object.resolveTypeReferenceDirectives (F:\Programacao\PlataformaGamer\plataforma-gamer\CLI react\CodeRevolution\coderevolution\node_modules\ts-node\src\index.ts:622:33) at actualResolveTypeReferenceDirectiveNamesWorker (F:\Programacao\PlataformaGamer\plataforma-gamer\CLI react\CodeRevolution\coderevolution\node_modules\typescript\lib\typescript.js:119382:163) at resolveTypeReferenceDirectiveNamesWorker (F:\Programacao\PlataformaGamer\plataforma-gamer\CLI react\CodeRevolution\coderevolution\node_modules\typescript\lib\typescript.js:119682:26) at processTypeReferenceDirectives (F:\Programacao\PlataformaGamer\plataforma-gamer\CLI react\CodeRevolution\coderevolution\node_modules\typescript\lib\typescript.js:121185:31) at findSourceFileWorker (F:\Programacao\PlataformaGamer\plataforma-gamer\CLI react\CodeRevolution\coderevolution\node_modules\typescript\lib\typescript.js:121070:21) at findSourceFile (F:\Programacao\PlataformaGamer\plataforma-gamer\CLI react\CodeRevolution\coderevolution\node_modules\typescript\lib\typescript.js:120922:26) at processImportedModules (F:\Programacao\PlataformaGamer\plataforma-gamer\CLI react\CodeRevolution\coderevolution\node_modules\typescript\lib\typescript.js:121331:25)

lucasdesouza-dev commented 1 year ago

resolver version laster

maarekj commented 1 year ago

I have the same issue.

How did you solve the issue ?

khusseini commented 1 year ago

Found the solution for this problem. You have to update your typescript version to ^5.0.4 There is a PR for this https://github.com/infinitered/gluegun/pull/776/files