0👍
You’re using a route relative to the current URL which in this case might not work. I’m assuming your are exposing the ‘public’ directory using express.static
. The js
files should be accessible as a absolute route, /js/appclient.js
.
<script type="module" src="/js/appclient.js" defer></script>
Source:stackexchange.com