Undeclared `enzyme` peer dependency
joepie91 opened this issue · 0 comments
joepie91 commented
It appears that this library actually requires enzyme
to be installed into the project, to be loaded:
Error: Cannot find module 'enzyme/build/ShallowWrapper'
Require stack:
- /home/sven/projects/zapdb-kv/node_modules/enzyme-to-json/utils.js
- /home/sven/projects/zapdb-kv/node_modules/enzyme-to-json/index.js
- /home/sven/projects/zapdb-kv/node_modules/snapshotter/dist/snapshotter.js
- /home/sven/projects/zapdb-kv/tests/storage-encoder/date.js
- /home/sven/projects/zapdb-kv/node_modules/tape/bin/import-or-require.js
- /home/sven/projects/zapdb-kv/node_modules/tape/bin/tape
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/home/sven/projects/zapdb-kv/node_modules/enzyme-to-json/utils.js:16:23)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/sven/projects/zapdb-kv/node_modules/enzyme-to-json/utils.js',
'/home/sven/projects/zapdb-kv/node_modules/enzyme-to-json/index.js',
'/home/sven/projects/zapdb-kv/node_modules/snapshotter/dist/snapshotter.js',
'/home/sven/projects/zapdb-kv/tests/storage-encoder/date.js',
'/home/sven/projects/zapdb-kv/node_modules/tape/bin/import-or-require.js',
'/home/sven/projects/zapdb-kv/node_modules/tape/bin/tape'
]
}
... however, it is not actually specified as a peerDependency
in package.json
.