GoogleChromeLabs / browser-fs-access

File System Access API with legacy fallback in the browser
https://googlechromelabs.github.io/browser-fs-access/demo/
Apache License 2.0
1.38k stars 84 forks source link

Demo page cannot import 'imageToBlob' #17

Closed shisama closed 4 years ago

shisama commented 4 years ago

Hi, I read this article. Thank you for writing an interesting article and your contributions to the new Native File System API. However, I couldn't try demo page on Chrome (86.0.4220.0(Official Build)canary (x86_64)). Console shows me the below error message.

Uncaught SyntaxError: The requested module 'https://unpkg.com/browser-nativefs' does not provide an export named 'imageToBlob'

I guess that imageToBlob cannot be used due to this change (#16).

If the demo page was broken unintentionally, please fix the demo page or export imageToBlob.

tomayac commented 4 years ago

Thanks for the report! I have fixed the demo. I indeed forgot to fix the import after the commit you mentioned.