-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
1.14.0 Syntax error exits server #5631
Comments
You seem to have a syntax error, that causes a build error. Let me know if I misunderstood something 🙏🏼 |
Hello @machour The problem here is not the typo or the error in itself. The issue is that this error shutdown the remix server. On 1.13 I would have a big white and red error screen as expected. Which is new with 1.14 and not very convenient. |
When I say Catch Boundary, it was a mistake, indeed it's the error boundary but it doesn't change the issue. It reminds me a former issue with the new dev server where sometimes it crash with a filesystem error because it was trying to write on a file that was already busy. Here the issue is different ofc, but the end result is the same : I precise that I don't have any catch or error boundary in my project. On 1.13 all the typo errors were catched correctly, but not on 1.14. |
Please provide a repository reproducing the issue 🙏🏼 |
@machour, it's hard to do that because (as for the former bug I was mentionning) the typo error doesn't always shut the dev server. It's "sometimes" and I am not sure how to reproduce it 100%. My repo has nothing fancy though. A brand new remix version 1.14, in typescript, on Windows. No future activated and I am still on the former remix dev server from remix template (not the express one).
In normal scenario of dev session, this error should happen regularly. It seems like the root cause is that error spread from esbuild arn't caught properly. |
This is the minimal reproduction: https://github.com/zkdiff/minimal-reproduction-1.14-build-error-regression Essentially:
|
I encounter the same problem. I tried reverting back to 1.13 (by changing every @remix dep manually), but the problem is still here. Did I downgrade the remix version the wrong way or should I keep going lower? EDIT: Thanks @kiliman (who answered below 👇)! I indeed forgot to remove the |
It depends on how your package.json versions look like. If you've already upgraded to v1.14.0 and you're using You can verify your versions by running |
Can confirm this, and it's a pretty bad DX regression.
However, when using the indie stack, this doesn't happen.
Using Node 19.6. Both projects using |
I am a bit confused what is the proper way to handle this right now. Yes, I can lock my version to 1.13 but I am wondering if this will get patched as I can see 1.14 is released already. What do I need to do to make this work in 1.14.0? |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
What version of Remix are you using?
1.14.0
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
Expected Behavior
Server display a classical error within the root error boundary
Actual Behavior
Server crash with : Error: Build failed with 1 error
The text was updated successfully, but these errors were encountered: