-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
TypeError: Unknown file extension ".ts" #2810
Comments
It seems tsx will work, but I don't know how to replace |
This seems a pretty complicated issue around running typescript on node. |
The esm loader stuff was immature while we developed the underpinnings to gulp v5, but we plan to explore some different techniques for gulp v6 (which drops older node support). Currently, transpiling is likely your best option to use a different language+ESM (like you mentioned). |
Is it possible to tell gulp to run |
You might be able to do something with |
Before you open this issue, please complete the following tasks:
What were you expecting to happen?
gulpfile.ts should be able to import packages written in ESM, like del@7
What actually happened?
[19:28:40] Loaded external module: ts-node/register
TypeError: Unknown file extension ".ts" for C:\Users\yuki\Desktop\test-gulp\gulpfile.ts
Please give us a sample of your gulpfile
https://github.com/UchihaYuki/gulp-typescript-bug
Terminal output / screenshots
Please provide the following information:
node -v
): v20.14.0npm -v
): 10.7.0gulp -v
): 5.0.0Additional information
The text was updated successfully, but these errors were encountered: