Closed MiteshGandhi2893 closed 2 years ago
You would need to use a library that supports Web
This is unrelated to Svelte. If you want to use a library that uses Node APIs on the browser, you'll have to polyfill them in some way or use another Rollup plugin to replace them with browser-compatible versions.
We are trying to use the file-type npm library on the browser side (chrome). Below is the code for the same in angular.
We are getting following errors, while running command npm start.
We are using the latest version for file-type i.e. 17.1.1 Please let us know the solution for this, or are there any steps or changes to be done before using the library on the browser side. We tried various solutions related to external dependencies but still couldn't get it to work.