You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { getOriginPrivateDirectory } from 'native-file-system-adapter'
I get the following error in the browser console:
node_modules/native-file-system-adapter/src/es6.js:1
import showDirectoryPicker from './showDirectoryPicker.js'
^
ParseError: 'import' and 'export' may appear only with 'sourceType: module'
bundleError @ 07_meltimush_webcodecs_fileapi:4
(anonymous) @ 07_meltimush_webcodecs_fileapi:231
Any idea what other information I can gather to figure out what is going on? My searches have pointed me towards browserify or gulp, but I am not sure what changes to try.
The text was updated successfully, but these errors were encountered:
This is actually a more general issue of this library being not having a properly built version at all.
While there exists a rollup config etc. the npm package does not have any dist directory.
@jimmywarting would you mind publishing a new package which contains a built version of the library?
it have kind of bit me as well with regards to extending the streams. Sometimes I wished that the bundle wouldn't include the stream polyfill at all but it's get included for whatever reason when i use my own bundler or any cdn.
I'm thinking of removing the hole stream polyfill dependency alltogheter and demand that the users use it in a environment that has the support for it
when I put the following in my code:
import { getOriginPrivateDirectory } from 'native-file-system-adapter'
I get the following error in the browser console:
Any idea what other information I can gather to figure out what is going on? My searches have pointed me towards browserify or gulp, but I am not sure what changes to try.
The text was updated successfully, but these errors were encountered: