Cannot find module 'fs' in 'image-to-base64'
towry opened this issue · comments
Towry Wang commented
Used in browser with webpack:
import("image-to-base64").then((imageToBase64) => { // .... })
https://webpack.js.org/guides/code-splitting/#dynamic-imports
Towry Wang commented
Use axios method instead. https://stackoverflow.com/a/42928445/796919