jvm-js-fullstack
jvm-js-fullstack copied to clipboard
I got an error that shoppinglist.js is not found.
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
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.)
In Server.kt change:
staticResources("/", "static"
)
to
staticResources("/", ""
)