这是indexloc提供的服务,不要输入任何密码
Skip to content

TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" #10879

@atinseau

Description

@atinseau

Verify canary release

  • I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue

TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts"

Which canary version will you have in your reproduction?

2.5.7

Environment information

turbo 2.5.7

CLI:
   Version: 2.5.7
   Path to executable: /Users/arthur/Documents/Dev/poc/turbo-gen/node_modules/.pnpm/turbo-darwin-arm64@2.5.7/node_modules/turbo-darwin-arm64/bin/turbo
   Daemon status: Not running
   Package manager: pnpm

Platform:
   Architecture: aarch64
   Operating system: macos
   WSL: false
   Available memory (MB): 15451
   Available CPU cores: 14

Environment:
   CI: None
   Terminal (TERM): xterm-256color
   Terminal program (TERM_PROGRAM): zed
   Terminal program version (TERM_PROGRAM_VERSION): 0.203.4
   Shell (SHELL): /bin/zsh
   stdin: false

Expected behavior

to run the generator

Actual behavior

not working

To Reproduce

When i try to run "pnpm turbo gen" this error occur

TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts"

to reproduce:

in empty folder -> pnpm i turbo
and run -> pnpm turbo gen -> press Y, choose TypeScript and see the error

Additional context

I think this commit introduce the regression

#10847

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions