Skip to content

using "--log-level verbose" + TS + HMR in default project with typescript results in missing file error #10142

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

Open
OndrejKarlik opened this issue Apr 25, 2025 · 0 comments

Comments

@OndrejKarlik
Copy link

🐛 bug report

Combination of

  1. typescript in the project
  2. hot reload
  3. --log-level verbose CLI flag

Causes parcel dev server to fail with error:

d:\parcel-verbose-log-bug>npm run start

[email protected] start
parcel --log-level verbose

@parcel/core: Asset graph walked

  • Building index.ts...
    [Error: ENOENT: no such file or directory, open 'd:\parcel-verbose-log-bug\node_modules@parcel\runtime-browser-hmr\lib\runtime-f967cf51c16ed2c5.js'] {
    errno: -4058,
    code: 'ENOENT',
    syscall: 'open',
    Server running at http://localhost:1234
    × Build failed.

The hash in the filename changes when I modify my code. The server runs, but only serves this error as HTML. Removing any of these 3 conditions makes the bug go away

🎛 Configuration (.babelrc, package.json, cli command)

This can be reproduced by creating an empty project with "npm create parcel vanilla my-parcel-app", then adding an empty typescript file and --log-level verbose. I have included repro repository below

💻 Code Sample

Repro case: github.com/OndrejKarlik/parcel-log-verbose-bug.git
run npm install && npm run start

🌍 Your Environment

Parcel 2.14.0
windows 11
node v23.10.0
npm 11.3.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