Can't resolve 'fs'
BernardA opened this issue · 1 comments
BernardA commented
Getting the error below when trying to compile this.
error - ./node_modules/pdf.js-extract/lib/cmap-reader.js:1:0
Module not found: Can't resolve 'fs'
Installation as such is working fine, no missing dependencies are reported.
BernardA commented
This is a Next js app and the code was being executed client side, which does not have access to fs.