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

Image src missing during startup #137

Open
bv185091 opened this issue Jul 14, 2023 · 0 comments
Open

Image src missing during startup #137

bv185091 opened this issue Jul 14, 2023 · 0 comments

Comments

@bv185091
Copy link

bv185091 commented Jul 14, 2023

Bug report

Describe the bug

This bug is an Unhandled Runtime Error -> Error: Image is missing required "src" property. Make sure you pass "src" in props to the 'next/image' component. Received: {"width":200, "height": 200}
This error appears to be coming from missing image sources in components/public/home/HomeGroups.js
The error is shown below:
Screenshot 2023-07-12 at 3 31 04 PM

It would be helpful to include a statement in the README about having to supply an image in components/public/home/HomeGroups.js prior to starting. In addition to this, supplying a sample image for the repo would also fix this problem and make it easier for the user to startup the project.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Clone the ncr-retail-demo repository
  2. Follow the setup instructions listed in the README "How to Use" section, these bugs will appear as you go to run the app

Expected behavior

No Runtime errors, app runs as expected

Screenshots

Screenshot 2023-07-12 at 3 31 04 PM

System information

  • OS: macOS Ventura 13.4.1
  • Browser: Chrome
  • Version of Next.js: 10.2.3
  • Version of Node.js: 16.13.0

Additional context

In Summary, the files that need to be changed are

  1. Addressing the image source issue in components/public/home/HomeGroups.js, in my opinion you could add logic to check if the image source is valid and run either way without raising an error, as the UI still looks okay with the image portion of the code removed.
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

1 participant