-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Windows + tsx issue #7834
Comments
Hi @osztenkurden, could you try adding |
@NicholasLYang Updated turbo.json so it looks like that: {
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"build": {
"dependsOn": ["prebuild", "^build"],
"outputs": ["output-file.txt", "dist/**"]
},
"prebuild": {},
"lint": {},
"type-check": {},
"dev": {
"cache": false,
"persistent": true
}
}
} However, still freezes. |
@chris-olszewski Yep, it does, to be sure I verified both Terminal/CMD and Git Bash, both console log out: Thats very weird, because it only starts happening on Turbo 13 I attached screens for working |
Is that error message always present in your turbo runs? |
No, forgot to run |
npx watch
in dev script stops executing if file references googleapis
Okay, I've been able to track this down to a weird interaction with Windows, Not exactly sure what the fix is at this time, but one workaround is to use the new experimental UI which allows for tasks on Windows to be hooked up to a pseudoterminal. Another workaround is to forcibly close |
Verify canary release
Link to code that reproduces this issue
https://github.com/osztenkurden/turbo-tsx-googleapis-issue
What package manager are you using / does the bug impact?
npm
What operating system are you using?
Windows
Which canary version will you have in your reproduction?
1.13.1-canary.0
Describe the Bug
Running turbo command, that invokes
tsx watch FILE.ts
, when FILE.ts includs reference fromgoogleapis
npm package results in no output, and no code being run. Removingwatch
flag makes it work properly. This worked properly on 1.12.5, and breaks on 1.13+.Expected Behavior
Referencing
googleapis
in Typescript code should not freeze executing that file when run withtsx watch
To Reproduce
apps/backend/index.ts:
apps/backend/package.json:
./turbo.json:
./package.json:
Running
npm run dev
should result in logging the content of thegoogle
object fromgoogleapis
. Currently it hangs:This works fine in 1.12.5, as well when manually executing
npx tsc watch src/index.ts
Additional context
No response
The text was updated successfully, but these errors were encountered: