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
Documentation states that FileType.extensions and FileType.mimeTypes should list corresponding lists. But when accessed from a browser build, both properties are undefined.
Your ‘solution’ makes it not crash initially, but it will ultimately when trying to use the fromFile in a browser, as fromBlob isn’t available anymore in Node mode. This is no fix in my opinion, and it’s really weird that documented properties aren’t there when using the file-type/browser edition…
I guess what I can do is add node: { fs: 'empty' }, and import selectively from each target, but this API feels super weird.
Hello,
Documentation states that
FileType.extensions
andFileType.mimeTypes
should list corresponding lists. But when accessed from a browser build, both properties are undefined.Reproducible demo
Consider following code:
It results in following:
Here is the demo: https://codesandbox.io/s/charming-edison-7q4p7?file=/src/App.vue
Expected behaviour:
List of supported extensions and mime types are being logged.
The text was updated successfully, but these errors were encountered: