-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Browser Quick Start error in code pen #20
Comments
Ah. New to (async () => {
window.dir = 'tutorial'
console.log(dir);
await pfs.mkdir(dir);
// Behold - it is empty!
await pfs.readdir(dir);
})() But this is so annoying that most examples / tutorials will leave out the (implied) wrapper function. Top-level |
Ah. Sadly this is not the only obstacle you face in this Code Pen! Sadly You're also using the Node version of isomorphic-git, which definitely won't work. You can use this one: https://cdn.jsdelivr.net/npm/[email protected]/dist/bundle.umd.min.js Lastly, you're using the 1.x version of BrowserFS instead of the 2.x version. It looks like jsDelivr doesn't deliver 2.0. You can try https://cdnjs.cloudflare.com/ajax/libs/BrowserFS/2.0.0/browserfs.min.js instead. And... huh I'm still getting an error,
Gimme a moment. 🤔 |
Oh I'm an idiot. semicolons. Here's your working pen! |
I decided to try to try my hand at doing the tutorial in CodePen:
https://codepen.io/tomByrer/pen/gKEvYM
But I get
Unexpected identifier
error forawait pfs.mkdir(dir);
I don't think it is my CDN choice: https://codepen.io/tomByrer/pen/wXOyBd
Both Fx Quantum 61 & Chrome 67.0.3396.87 Linux
The text was updated successfully, but these errors were encountered: