aleph.js
aleph.js copied to clipboard
Failed loading react/components/Head.js on Firefox (Ubuntu 20.04 LTS)
I have this very strange issue where I run
ALEPH_DEV=true deno run -A --unstable --location=http://localhost cli.ts dev ./examples/hello-world -L debug
and then go on Firefox (Ubuntu 20.04 LTS) to launch the page. I receive 404 http://localhost:8080/_aleph/-/deno.land/x/[email protected]/framework/react/components/Head.js in the console. I tried launching the page on Chrome everything seems to be fine.
I decided to debug a bit further. I found out, when the pre-compiled js files are being loaded, all of them are being pointed at through the proxy /-/http_localhost_2020/ but the Head.js file is the only one that is being resolved from /-/deno.land/x/
The way I debugged is pretty primitive but helped. I am logging to the console at the point where the handler (at server/server.ts) is serving the modules. aleph.findModule() would be looking for the jsFile corresponding to the relPath and if a module is found it will respond with the appropriate header.
@AbuHafsa wired since chrome can works fine, try to disable the cache?
@ije I thought so but I made sure it was disabled and still encountering the same error. Are you able to re-produce it, to make sure it is a common case?
@AbuHafsa thanks, i will try later!