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

Blank screen after openv0 attempts to generate a component #7

Open
aws-avocado opened this issue Sep 21, 2023 · 3 comments
Open

Blank screen after openv0 attempts to generate a component #7

aws-avocado opened this issue Sep 21, 2023 · 3 comments

Comments

@aws-avocado
Copy link

aws-avocado commented Sep 21, 2023

I'm ending up with a blank white screen after openv0 generates a component. It was working fine previously, and the only way to fix this is to run npx openv0 again to reinstall the app.

@deleteman
Copy link

I've had this issue as well, some generations are just not compatible (I guess?) and end up turning into a blank screen.

@denyncrawford
Copy link
Contributor

denyncrawford commented Sep 24, 2023

Hi @aws-avocado and @deleteman,

I've encountered a situation like this before. In some cases, code generations don't export a default or import a library that's not available on the front end. As a result, when the app attempts to load these modules, it crashes. This issue arises because the project assumes that generated modules will always return a default export, or it may involve missing installed dependencies. One way to address this is by removing the problematic components from both the server and client sides.

@raidendotai, to improve this situation, adjusting prompts or validating would be nice to ensure that modules are correctly formatted before being written to the database.

related to #4 .

@denyncrawford
Copy link
Contributor

denyncrawford commented Sep 24, 2023

@aws-avocado, @deleteman As a workaround consider using strict prompts, like:
generate a button with a hellow world text inside, make sure to export a default

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

3 participants