Closed matteo-cristino closed 2 months ago
This still does not work, when adding
@slangroom/git
to@slangroom/browser
I get:Uncaught Error: Dynamic require of "fs" is not supported
maybe we should use BrowserFS instaead of
fs
?Or even lightning-fs from the autors of
isomorphic-git
go for it... lightning-fs seems very promising!
Looking better at lightning-fs
it seems that it works just in the browser and thus it is not isomoprhic. This left us with ZenFS that is the active fork of BrowserFS
Now fs and path should have been fixed, waiting for a new zenFS release that fix a bug to continue on tests.
But I found out another thing that is that also process
is not define on the browser, where we use it to get the env variables in @slangroom/git
export const sandboxDir = () => {
// TODO: sanitize sandboxDir
return process.env['FILES_DIR'];
};
Will continue on next week to see what can be done for this ðŸ«
superseded by #195
This still does not work, when adding
@slangroom/git
to@slangroom/browser
I get:maybe we should use BrowserFS instaead of
fs
?Or even lightning-fs from the autors of
isomorphic-git
for the moment will leave it here as a draft, to be worked on when we have time