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

GET /index.html" Error (404): "Not found" #3

Open
shershen08 opened this issue Mar 20, 2019 · 2 comments
Open

GET /index.html" Error (404): "Not found" #3

shershen08 opened this issue Mar 20, 2019 · 2 comments

Comments

@shershen08
Copy link

Starting with npm run start
and then opening any of the provided urls I try to open url in browser and get a blank page.
In log I have this:

> http-server dist

Starting up http-server, serving dist
Available on:
  http://127.0.0.1:8080
  http://127.94.0.1:8080
  http://192.168.2.3:8080
Hit CTRL-C to stop the server
[Wed Mar 20 2019 21:51:45 GMT+0100 (CET)] "GET /" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36"
[Wed Mar 20 2019 21:51:45 GMT+0100 (CET)] "GET /" Error (404): "Not found"
[Wed Mar 20 2019 21:51:59 GMT+0100 (CET)] "GET /index.html" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36"
[Wed Mar 20 2019 21:51:59 GMT+0100 (CET)] "GET /index.html" Error (404): "Not found"
[Wed Mar 20 2019 21:52:14 GMT+0100 (CET)] "GET /index.html" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36"
[Wed Mar 20 2019 21:52:14 GMT+0100 (CET)] "GET /index.html" Error (404): "Not found"

node -v
v8.11.3

npm -v
6.8.0

@LasaleFamine
Copy link
Member

Hi @shershen08, did you build the project first? You should run:

npm run build

Let me know if the problem persist after building the project.

@shershen08
Copy link
Author

shershen08 commented Mar 22, 2019

When I try to build it I get:

(node:75485) UnhandledPromiseRejectionWarning: SyntaxError: super() is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class? (13:6)

because of

export default class CounterElement {
   /.../
    constructor() {
      super();  <-------- this call
      this.clicks = 0;
      this.value = 0;
    }

then if i try like this

  export default class CounterElement extends LitElement{
   /.../
    constructor() {
      super();
      this.clicks = 0;
      this.value = 0;
    }

i get

    (node:75452) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token, expected "{" (3:57)```

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

2 participants