1) add 'import "mongoose"' line
mongoose should be imported with no problem.
getting error:
These dependencies were not found:
* dns in ./node_modules/mongodb-core/lib/uri_parser.js, ./node_modules/mongodb/lib/url_parser.js
* fs in ./node_modules/mongodb/lib/gridfs/grid_store.js, ./node_modules/require_optional/index.js
* module in ./node_modules/require_optional/node_modules/resolve-from/index.js
* net in ./node_modules/mongodb-core/lib/connection/connection.js
* tls in ./node_modules/mongodb-core/lib/connection/connection.js
I've tried v1.0 and v1.4 I've tried to wrap importing within 'process.server ' condition - doen't help. Error appears on compilation step, not on requesting endpoint.
What could be wrong? Please, help. Thank you
<!--cmty--><div align="right"><sub><em>This bug report is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c6999">#c6999</a>)</em></sub></div>