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

Error: ENOENT: no such file or directory with temp file #330

Open
chrishoermann opened this issue Nov 13, 2022 · 2 comments
Open

Error: ENOENT: no such file or directory with temp file #330

chrishoermann opened this issue Nov 13, 2022 · 2 comments

Comments

@chrishoermann
Copy link

Issue description

When runnig ts-node-dev it throws the following error:

ENOENT Error Prisma

I'm using prisma with generated zod types that generate some really long filenames - can this cause the issue?

Context

OS version (is it docker or host?), ts-node-dev version

Win 10

Did you try to run with ts-node?

yes - works

Did you try to run with --files option enabled?

yes - same error

Did you try to run with --debug option enabled?

yes -same error

Do you have a repro example (git repo) with simple steps to reproduce your problem?

no

@marcusrognes
Copy link

Hi,
No solution here?
I have the same error on windows 11.
I think it is related to Windows Defender flaging it as a threat. for me atleast.
Every time I try to run the ts-node-dev command, Windows Defender triggers a "Found a threat" message, and I guess just deletes the files.
ts-node runs just fine.

@marcusrognes
Copy link

I found that if I add an exception for the AppData\Local\Temp folder it works, and Windows Defender calms down.
But I dont think that is a solution I would like to keep for too long.
Any idea what might be causing it?
Windows Defender is not being helpful with why thoese files in particular are being flagged.

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

2 participants