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

I got an error that shoppinglist.js is not found. #36

Open
tk-hirom opened this issue Sep 18, 2023 · 1 comment
Open

I got an error that shoppinglist.js is not found. #36

tk-hirom opened this issue Sep 18, 2023 · 1 comment

Comments

@tk-hirom
Copy link

tk-hirom commented Sep 18, 2023

Nice to meet you, I am learning from this tutorial here.
I am stumped by the error message that the shoppinglist.js referenced in index.html cannot be found.
GET http://localhost:9090/shoppinglist.js net::ERR_ABORTED 404 (Not Found)

Any support would be appreciated.

  • Open in another browser
  • Clear cache
  • Check file name/path
Screenshot 2023-09-18 at 23 35 53

but none of them worked.

I think it might be the local machine, because the same thing happens when I try to run the code cloned from the final branch.
If you know how to solve this problem, I would appreciate it if you could help me.

  • CPU: Apple M2
  • Browser: Chrome
  • Editor: IntelliJ IDEA

(It is my first time so I am sorry if I do something wrong.)

@IvaninDaniil
Copy link

IvaninDaniil commented Sep 26, 2023

In Server.kt change:

staticResources("/", "static" )
to
staticResources("/", "" )

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