While building an app with webpack I've come across the following error.
ERROR in ./~/pouchdb/lib/deps/migrate.js
Module not found: Error: Cannot resolve module 'fs' in /Users/svenlito/Sites/tmp/pouchdb_webpack_test/node_modules/pouchdb/lib/deps
@ ./~/pouchdb/lib/deps/migrate.js 3:9-22
It can be resolved by adding "browser": {"fs": false} to pouch's package.json.
While building an app with webpack I've come across the following error.
It can be resolved by adding
"browser": {"fs": false}to pouch'spackage.json.