jvm-js-fullstack icon indicating copy to clipboard operation
jvm-js-fullstack copied to clipboard

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

Open tk-hirom opened this issue 1 year ago • 1 comments

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.)

tk-hirom avatar Sep 18 '23 14:09 tk-hirom

In Server.kt change:

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

IvaninDaniil avatar Sep 26 '23 03:09 IvaninDaniil