You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The require('pouchdb-browser') fails in npm2 because it’s a sub dependency and does not exist in node_modules/pouchdb-browser but node_modules/hoodie/node_modules/pouchdb-browser instead
I’m not sure if there is a clever way to work around that, so that we remain compatible with npm2, or if we give up on it. The work around is to install pouchdb-browser and @hoodie/client as dependencies of the app itself:
npm install --save pouchdb-browser @hoodie/client
The text was updated successfully, but these errors were encountered:
We bundle the hoodie
client.js
dynamically on first request toGET /hoodie/client.js
, seehoodie/server/plugins/client/bundle.js
Line 91 in 2bc4c6d
The
require('pouchdb-browser')
fails in npm2 because it’s a sub dependency and does not exist innode_modules/pouchdb-browser
butnode_modules/hoodie/node_modules/pouchdb-browser
insteadI’m not sure if there is a clever way to work around that, so that we remain compatible with npm2, or if we give up on it. The work around is to install
pouchdb-browser
and@hoodie/client
as dependencies of the app itself:The text was updated successfully, but these errors were encountered: