aleph.js icon indicating copy to clipboard operation
aleph.js copied to clipboard

Failed loading react/components/Head.js on Firefox (Ubuntu 20.04 LTS)

Open abusarah-tech opened this issue 4 years ago • 3 comments
trafficstars

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.

abusarah-tech avatar Aug 28 '21 13:08 abusarah-tech

@AbuHafsa wired since chrome can works fine, try to disable the cache?

ije avatar Aug 28 '21 18:08 ije

@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?

abusarah-tech avatar Aug 29 '21 04:08 abusarah-tech

@AbuHafsa thanks, i will try later!

ije avatar Aug 29 '21 05:08 ije