Snowpack 2.10.0 seems to have broken snowpack build --watch #975
-
The process exits without actually waiting for changes:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Ha! I ran into this too. I was writing up a larger bug report for other oddities with I'm using Steps to reproduceCreate a blank project:
Add this to
Start it up:
And here's the output:
Wait, what? That's not even the bug I was trying to show off! It looks like Reproducing the issues in v2.9.3Ok, downgrade package.json to use:
And
Also, it turns out this failure requires TypeScript, so rename And now this works (and continues to wait):
... BUT, try editing your
... and Snowpack exits. (I'd expect it to keep running so that I could re-save One more failure modeIn my setup, I've got a custom build step to generate some javascript files To reproduce: Add this plugin entry to snowpack.config.json to simulate a failing command: "plugins": [
[
"@snowpack/plugin-run-script",
{
"cmd": "abracadabra"
}
]
] Make sure to remove invalid JavaScript from your index.ts from the previous Now,
There's no point in starting watch mode if my dependencies couldn't be built. |
Beta Was this translation helpful? Give feedback.
-
@benoitg @NfNitLoop thanks for catching this! You're right, there was 1 regression introduced by 2.10.0, and a couple of longer-standing issues here (broken run scripts don't kill the build, broken files do kill the build, even in watch mode). Fixes for all added here: #981 |
Beta Was this translation helpful? Give feedback.
@benoitg @NfNitLoop thanks for catching this! You're right, there was 1 regression introduced by 2.10.0, and a couple of longer-standing issues here (broken run scripts don't kill the build, broken files do kill the build, even in watch mode).
Fixes for all added here: #981