Skip to content
This repository has been archived by the owner on Apr 30, 2019. It is now read-only.

www index.html load issue #5

Closed
2 tasks
webpreneur opened this issue Dec 18, 2018 · 1 comment
Closed
2 tasks

www index.html load issue #5

webpreneur opened this issue Dec 18, 2018 · 1 comment

Comments

@webpreneur
Copy link

Version:

 @bfmatei/stencil-boilerplate@<version>

I'm submitting a:

  • bug report
  • feature request
  • [ x] support request

Current Behavior:
After the build when I try to serve index.html (with VSCode's live server plugin) in the www directory I get the following error:

index.html:32 Live reload enabled.
:5500/assets/logo.svg#logo:1 Failed to load resource: the server responded with a status of 404 (Not Found)
:5500/build/app/app.xn8ivqrx.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
:5500/manifest.json:1 Failed to load resource: the server responded with a status of 404 (Not Found)
:5500/manifest.json:1 Manifest: Line: 1, column: 1, Unexpected token.
index.html:4 service worker error TypeError: Failed to register a ServiceWorker: A bad HTTP response code (404) was received when fetching the script.
:5500/assets/favicon/favicon-32x32.png:1 Failed to load resource: the server responded with a status of 404 (Not Found)
:5500/assets/favicon/favicon-16x16.png:1 Failed to load resource: the server responded with a status of 404 (Not Found)
:5500/assets/favicon/favicon.ico:1 Failed to load resource: the server responded with a status of 404 (Not Found)

Expected Behavior:

Steps to Reproduce:
$ npm run-script build
serve ./www/index.html

Related Code:

// insert any relevant code here
@webpreneur
Copy link
Author

Uploading the content of the www directory to a static server solved the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant