Skip to content

index.html has broken path to assets/app.js #233

Description

@tylerjryan

In src/index.html, the app.js file is sourced by this line here:

  <script type="text/javascript" src="/assets/app.js"></script>

When opening the dist/index.html file after running npm run dist, I am seeing this error in the console:

Failed to load resource: net::ERR_FILE_NOT_FOUND ...  file:///assets/app.js

I fixed this by simply changing the src path to:

  <script type="text/javascript" src="./assets/app.js"></script>

Notice the addition of the "." in front of /assets.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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