Just this line in my code:
import Instascan from 'instascan'
ERROR in ./node_modules/instascan/src/zxing.js
Module not found: Error: Can't resolve 'fs' in '/Users/enzo/Copy/projects/elevenyellow/coinfy/node_modules/instascan/src'
resolve 'fs' in '/Users/enzo/Copy/projects/elevenyellow/coinfy/node_modules/instascan/src'
Parsed request is a module
using description file: /Users/enzo/Copy/projects/elevenyellow/coinfy/node_modules/instascan/package.json (relative path: ./src)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /Users/enzo/Copy/projects/elevenyellow/coinfy/node_modules/instascan/package.json (relative path: ./src)
resolve as module
When building with webpack I have this issue:
Just this line in my code:
import Instascan from 'instascan'
This is the setup I'm using: https://github.com/Josema/preact-webpack-hmr