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

Running npm run dev gives blank page #1788

Closed
AxelQSam opened this issue Jul 5, 2024 · 3 comments · Fixed by #1812
Closed

Running npm run dev gives blank page #1788

AxelQSam opened this issue Jul 5, 2024 · 3 comments · Fixed by #1812

Comments

@AxelQSam
Copy link

AxelQSam commented Jul 5, 2024

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Go to app/
Execute $ ./start.sh

Open new terminal

Go to app/frontend/.
Execute $ npm run dev.
Navigate to the provided address in the browser.
See blank page in the browser.

Any log messages given by the failure

Can't find any errors

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

azd version?

run azd version and copy paste here.

Versions

Mention any other details that might be useful

I took a break from my project and before the break it used to work. Now I can't hot reload. I have the same problem with sample-app-aoai-chatGPT.


Thanks! We'll be in touch soon.

@pamelafox
Copy link
Collaborator

Hm, it might be due to a recent vite/Docker issue: vitejs/vite#16522

Does it help if you make this change to package.json?

"dev": "vite --host 127.0.0.1",

There are also other suggestions in that thread.
We can make that change to the repo if it improves the situation.

Also, are you working inside a Dev Container?

@AxelQSam
Copy link
Author

Hm, it might be due to a recent vite/Docker issue: vitejs/vite#16522

Does it help if you make this change to package.json?

"dev": "vite --host 127.0.0.1",

There are also other suggestions in that thread. We can make that change to the repo if it improves the situation.

Also, are you working inside a Dev Container?

Changing package.json solved the issue. Thank you @pamelafox 👍

And yes, I was working in a Dev Container.

@pamelafox
Copy link
Collaborator

Okay, I will make that change for the repo.

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

Successfully merging a pull request may close this issue.

2 participants