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

Unknown file extension ".ts" #122

Open
adekang opened this issue Nov 30, 2024 · 0 comments
Open

Unknown file extension ".ts" #122

adekang opened this issue Nov 30, 2024 · 0 comments

Comments

@adekang
Copy link

adekang commented Nov 30, 2024

When I use version 9.0.0, I get the following error
the following error

[20:31:13] Loaded external module: sucrase/register/ts
[20:31:13] Working directory changed to D:\DeskTop\worksapce\web-demo\mist-vue\packages\components\script\bundle
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for D:\DeskTop\worksapce\web-demo\mist-vue\packages\components\script\bundle\index.ts
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:160:9)
    at defaultGetFormat (node:internal/modules/esm/get_format:203:36)
    at defaultLoad (node:internal/modules/esm/load:143:22)
    at async ModuleLoader.load (node:internal/modules/esm/loader:403:7)
    at async ModuleLoader.moduleProvider (node:internal/modules/esm/loader:285:45)
    at async link (node:internal/modules/esm/module_job:78:21) {
  code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
 ELIFECYCLE  Command failed with exit code 1.

The above error will not appear when I reduce it to 8.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant