Closed siuying closed 5 years ago
Would you mind posting a stack trace? Ideally fs
shouldn't be getting used at all. :P
Oh dang. It looks to be a race condition since the archive isn't fully 'loaded' yet.
Try using this code for loading the archive for now
const archive = await DatArchive.load('dat://whatever')
Thank you for reporting this!
This should be fixed in Version 2.0.5 😁
Thanks a lot!
Now I get an error "Error: File not found" at bundle.js:5305:5
Weird. You might want to add a short delay before trying to read anything from the archive so that the metadata can download.
Else I'd check if the data ever gets loaded and that the archive is pinned somewhere.
Thanks. I suspects the given example have no peers. I tried to shared something on Beaker but I still get same errors. Would you have any feeds that is working from your side?
Yeah, sadly the browser version is still having trouble loading archives that are just in home networks, I find that opening an archive in https://gateway.mauve.moe/ can help and also pinning archives to hashbase or a dat-store instance on a server.
When I try to create a html based on example in README:
The page throw error:
TypeError: fs.watch is not a function
. I've tried this on Firefox and Chrome, both return same error.