Thanks to visit codestin.com
Credit goes to github.com

Skip to content

saving changes (leading to forked stackblitz) breaks static asset image servingΒ #493

@thescientist13

Description

@thescientist13

Describe the bug

Noticed that if I made changes to a blitz, thus causing a fork, and then re-ran the same npm start command, that the image in the header was not loading anymore.

Link to the blitz that caused the error

https://stackblitz.com/github/ProjectEvergreen/greenwood-getting-started

Steps to reproduce

  1. Load the blitz
  2. Run npm start. Observe the dev server starts and you can see the Greenwood logo in the header
    Screen Shot 2021-12-15 at 9 15 09 PM
  3. Make and save any change to a file (like editing the name field in package.json)
    Screen Shot 2021-12-15 at 9 15 39 PM
  4. This will cause a fork
  5. Run the npm start command again, now the image in the header is not loading
    Screen Shot 2021-12-15 at 9 16 11 PM

Expected behavior

It would be great if the image continued to load. πŸ˜ƒ

Screenshots

Provided in the Steps to reproduce section πŸ‘†

Platform

  • OS: macOS
  • Browser: Chrome
  • Version: 96

Additional context

The image is referenced in a folder called /assets and is served by a simple Koa server from src/components/header/header.js.

Not sure if this is related to #208 ?

I can make as many changes as I want and keep running npm start and everything is fine, but as soon as I save and get into a fork, the image loading breaks.


Thanks in advance for any help / guidance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions