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

Hiding react-error-overlay errors that are shown #5890

Open
ofergoli opened this issue Jun 11, 2021 · 10 comments
Open

Hiding react-error-overlay errors that are shown #5890

ofergoli opened this issue Jun 11, 2021 · 10 comments
Labels
🎒 Bundler Refers to CodeSandbox's In-Browser Bundler ✨ Feature Indicates that this adds a new feature.

Comments

@ofergoli
Copy link

🌈 Feature

Someone knows or able to create a sandbox that not showing this error page made by react-error-overlay ?
Screen Shot 2021-06-11 at 9 48 19 AM

Thanks (:

@DeMoorJasper
Copy link
Member

Hey, we use react-overlay to show the errors in your application both from compilation and runtime.

What is the behaviour you expect in this case?

@ofergoli
Copy link
Author

That it won't show the overlay errors.
When someone typing something invalid

@DeMoorJasper
Copy link
Member

So you don't want to preview to update unless you've saved the file?

@ofergoli
Copy link
Author

No.. I'm embedding Iframe in my website. and when someone Writes down a typo I don't want to show these alerts.
Its website for coding practice

@ofergoli
Copy link
Author

Is there any option to setup that somehow in a sandbox?
I saw that on react NODE_ENV=production it wont show, but when setting .env with that, it crashed something internally in codesandbox i guess

@DeMoorJasper
Copy link
Member

DeMoorJasper commented Jun 11, 2021

Alright got it, so you want the sandbox to be in production mode. We don't really support this yet and environment variables aren't supported either, there's an open feature request for this: #5861

Supporting env variables is pretty high on my priority list

This is mainly due to codesandbox and sandpack being focused on development, which doesn't really have a need for hiding development tools and errors

@DeMoorJasper DeMoorJasper added ✨ Feature Indicates that this adds a new feature. 🎒 Bundler Refers to CodeSandbox's In-Browser Bundler and removed Needs More Info labels Jun 11, 2021
@ofergoli
Copy link
Author

Ok thanks a lot ☺️

@ofergoli
Copy link
Author

Any update on that? (: @DeMoorJasper

@DeMoorJasper
Copy link
Member

DeMoorJasper commented Nov 17, 2021

No, haven't really gotten a chance to look into this yet.

Backlog for sandpack is pretty big and we prioritise things that impact the main experience like performance, stability and some missing features like proper ESModule support.

Really wish I had more time to work on sandpack

@ofergoli
Copy link
Author

Ok thanks anyway, appreciate your quick response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎒 Bundler Refers to CodeSandbox's In-Browser Bundler ✨ Feature Indicates that this adds a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants