Skip to content

Bug: Missing favicon.ico causing 404 error in browser console #142

@samarth5106

Description

@samarth5106

📍 Description

When running the project locally using npm run dev, the browser console shows a 404 error for /favicon.ico.

The browser automatically attempts to load a favicon from the root directory, but the file does not exist in the public/ folder, resulting in a failed request.


🧪 Steps to Reproduce

  1. Clone the repository.
  2. Navigate to the project folder:
    cd CITY-STYLE
  3. Install dependencies:
  4. Start the development server:
  5. Open http://localhost:5173 in the browser.
  6. Open DevTools → Console.

Expected Behavior

No 404 errors in the browser console.
A favicon should load successfully from the public/ directory.
The browser tab should display the project icon.

Suggested Fix

Add a favicon.ico file inside the public/ folder. OR
Update index.html to correctly reference an existing icon file.


Screenshot

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions