Skip to content

Cannot require tsgo #2136

Description

@sxzz

Describe the bug

Cannot require tsgo

Link to the blitz that caused the error

https://stackblitz.com/edit/stackblitz-starters-mzhu3tok?file=index.js

Steps to reproduce

require('typescript') causes

❯ node index.js
Error: Parse error @:133:42
    at wrapSafe (node:internal/modules/cjs/loader:160:13116)
    at Module._compile (node:internal/modules/cjs/loader:160:18151)
    at Module._extensions..js (node:internal/modules/cjs/loader:160:20043)
    at Module.load (node:internal/modules/cjs/loader:160:17661)
    at Module._load (node:internal/modules/cjs/loader:160:15179)

Node.js v22.22.3

Expected behavior

No errors

Parity with Local

Screenshots

No response

Platform

  • OS: macOS
  • Browser: Chrome
  • Version: 150.0.7871.129

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions