-
Notifications
You must be signed in to change notification settings - Fork 795
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
bug: watch mode crashes on git operations (ERR_INVALID_ARG_TYPE) #4044
Comments
To add to the report, I was not able to reproduce on Linux (NixOS with repository flake, node 16.18.1, npm 8.19.2). I believe it is limited to MacOS. This also affects my coworkers on their MacOS machines (with node installed via brew, rather than Nix.) |
Hello :) System info: npm version: 8.19.3 |
I've been getting the error on linux, on deleting / moving files.
System info: kernel: x86_64 Linux 6.1.11-arch1-1 |
I'm able to reproduce this consistently on Ionic Framework as well. I'm using MacOS, but I assume this is a result of the Typescript 4.8 upgrade, which had changes to both Linux and MacOS file watching. After running the dev server, deleting a static file, such as a
|
Hey folks 👋 I have two dev builds of Stencil that may fix this issue, one for Stencil v2 users, and one for Stencil v3 users. If anyone running into this particular issue could install either version (if you're on Stencil v2.X, use the first one. if you're on Stencil v3.X, use the second one) and report back as to whether that fixes the issue at hand, that be much appreciated.
Thanks! |
Both of these seem to work for me! This also seems like it resolves #3952 (though I only run into that one sporadically) |
The PR associated with this issue has landed and is included in today's v2.22.3 release and v3.2.0 release. As a result, I'm going to close this issue. Should this issue reappear, please feel free to open a new issue. Thanks again! |
Prerequisites
Stencil Version
3.0.0
Current Behavior
stencil build --dev --watch --serve
crashes whenever a git operation is performed on stencil-watched filesExpected Behavior
Components are re-built without crashing.
System Info
Steps to Reproduce
Steps to exact the behavior I am seeing:
npm init stencil
npm install
npm start
my-component.tsx
, save, and observe the watcher completes the re-compilation.git reset --hard HEAD
).Code Reproduction URL
https://github.com/cscorley/stencil-minimum
Additional Information
This is also occurring on v2.22.1.
Other git ops known to work include any thing that affects any file which is stencil-relevant: changing branches, merging branches, fast-forwarding, pulling, and so on.
Stack of the crash:
The text was updated successfully, but these errors were encountered: