typescript-go icon indicating copy to clipboard operation
typescript-go copied to clipboard

Staging repo for development of native port of TypeScript

Results 434 typescript-go issues
Sort by recently updated
recently updated
newest added

> I have started running into this issue as well after we fully switched to using tsgo yesterday. > I seem to be getting it pretty consistently in a specific...

Crash

Successfully implemented protection against renaming standard library symbols (e.g., `setTimeout`, `console.log`, `Array.push`, etc.), matching TypeScript's rename validation semantics. ## Changes Made - **Added library symbol detection**: Created `isDefinedInLibraryFile()` helper that...

## Stack trace ``` panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x102a8783c] goroutine 1 [running]: github.com/microsoft/typescript-go/internal/ast.IsParameter(...) github.com/microsoft/typescript-go/internal/ast/ast.go:3976 github.com/microsoft/typescript-go/internal/checker.(*Checker).getConditionalFlowTypeOfType(0x14003eb4c08, 0x140043b8410, 0x14006a85658?) github.com/microsoft/typescript-go/internal/checker/checker.go:24330...

Domain: Type Checking
Crash

## Stack trace ``` fatal error: concurrent map read and map write goroutine 2631 [running]: internal/runtime/maps.fatal({0xdee3aa?, 0xc0047134c8?}) runtime/panic.go:1046 goroutine 2631 [running]: internal/runtime/maps.fatal({0xdee3aa?, 0xc0047134c8?}) runtime/panic.go:1046 +0x18 github.com/microsoft/typescript-go/internal/core.(*LinkStore[...]).Get(0x1082960, 0xc00665c2a8) github.com/microsoft/typescript-go/internal/core/linkstore.go:11 +0x36 github.com/microsoft/typescript-go/internal/checker.(*Checker).resolveAlias(0xc006947308,...

Crash

When one enum assigns values from an imported enum, tsgo removes the import but the compiled code still tries to use it, causing a crash at runtime. This works correctly...

## Steps to reproduce 1. https://github.com/nil1511/wavesurfer-tsgo 2. bun install index.ts ``` import type RegionsPlugin from 'wavesurfer.js/dist/plugins/regions.js'; import type { Region } from 'wavesurfer.js/dist/plugins/regions.js'; export const getRegionWithId = ( regions: RegionsPlugin,...

Domain: Declaration Emit

Potentially related: https://github.com/microsoft/typescript-go/issues/1034 ## Steps to reproduce https://github.com/johnpyp/tsgo-monorepo-reference-issue ## Setup - `package-c`: exports `MyType` interface - `package-b`: project reference to `package-c`, exports `createThing()` returning `MyType` - `package-a`: project reference to...

Domain: Declaration Emit

## Steps to reproduce Repo: https://github.com/dragomirtitian/ts-go-root-dirs-not-in-declaration-files ```ts // @fileName: /data/some-code.ts import { UpdateBundleConfigResponse } from "./types" const config = null! as UpdateBundleConfigResponse; export const exportedConfig = config; // @fileName: /data/types.ts...

Domain: Declaration Emit

## Stack trace ``` panic: regexp: Compile(`(?i)^((/Users/x/develop/proj_\副\本/src/node(/.+?)?/[^/]*)|(/Users/x/develop/proj_\副\本/src/node\-common(/.+?)?/[^/]*)|(/Users/x/develop/proj_\副\本/node_modules(/.+?)?/[^/]*)|(/Users/x/develop/proj_\副\本/src/[^/]*/[^/]*/node_modules(/.+?)?/[^/]*))($|/)`): error parsing regexp: invalid escape sequence: `\副` ``` ## Steps to reproduce 1.Create a project with Chinese characters in its name and initialize...

Crash

- [x] Understand the issue: CodeLens references only count references within the current project, not across project references - [x] Create test case to demonstrate the issue (shows 1 reference...