Module Not found seneca-mongo-store
rohit267 opened this issue · 0 comments
Using the basic example of "seneca-mongo-store"
Here is the error:
{"kind":"fatal","level":600,"plugin":"seneca","tag":"3.26.2","id":"h5l8f8q9hasu/1652071578642/2300/3.26.2/-","code":"not_found","notice":"seneca: use-plugin: Could not load plugin mongo-store; searched the following folder and file paths: [ /Users/rohitmahto/Development/sceneca/node_modules/seneca: undefined, undefined, undefined, ] [ /Users/rohitmahto/Development/sceneca: undefined, undefined, undefined, undefined, undefined, undefined, ] .","err":{"eraro":true,"orig":{"eraro":true,"orig":null,"code":"not_found","use-plugin":true,"package":"use-plugin","msg":"use-plugin: Could not load plugin mongo-store; searched the following folder and file paths: [ /Users/rohitmahto/Development/sceneca/node_modules/seneca: undefined, undefined, undefined, ] [ /Users/rohitmahto/Development/sceneca: undefined, undefined, undefined, undefined, undefined, undefined, ] .","details":{"options":{"uri":"mongodb://mongo:mongo@localhost:27888/test"},"history":[{"module":"/Users/rohitmahto/Development/sceneca/node_modules/seneca/seneca.js","name":"seneca-mongo-store"},{"module":"/Users/rohitmahto/Development/sceneca/node_modules/seneca/seneca.js","name":"@seneca/mongo-store"},{"module":"/Users/rohitmahto/Development/sceneca/node_modules/seneca/seneca.js","name":"mongo-store"},{"module":".","name":"seneca-mongo-store"},{"module":".","name":"@seneca/mongo-store"},{"module":".","name":"mongo-store"},{"module":".","name":"./mongo-store"},{"module":".","name":"./seneca-mongo-store"},{"module":".","name":"./@seneca/mongo-store"}],"name":"mongo-store","full":"mongo-store","callpoint":"at Object.<anonymous> (/Users/rohitmahto/Development/sceneca/index.js:4:3)","search":[{"type":"normal","name":"seneca-mongo-store"},{"type":"normal","name":"@seneca/mongo-store"},{"type":"normal","name":"mongo-store"},{"type":"normal","name":"./mongo-store"},{"type":"normal","name":"./seneca-mongo-store"},{"type":"normal","name":"./@seneca/mongo-store"}],"modulepath":".","requirepath":"./@seneca/mongo-store","found":{"type":"normal","name":"./@seneca/mongo-store"},"defaults":{},"searchlist":"[ /Users/rohitmahto/Development/sceneca/node_modules/seneca: undefined, undefined, undefined, ] [ /Users/rohitmahto/Development/sceneca: undefined, undefined, undefined, undefined, undefined, undefined, ] "},"callpoint":"at Task.load [as exec] (/Users/rohitmahto/Development/sceneca/node_modules/seneca/lib/plugin.js:138:43)"},"code":"not_found","use-plugin":true,"package":"seneca","msg":"seneca: use-plugin: Could not load plugin mongo-store; searched the following folder and file paths: [ /Users/rohitmahto/Development/sceneca/node_modules/seneca: undefined, undefined, undefined, ] [ /Users/rohitmahto/Development/sceneca: undefined, undefined, undefined, undefined, undefined, undefined, ] .","details":{"errmsg":"use-plugin: Could not load plugin mongo-store; searched the following folder and file paths: [ /Users/rohitmahto/Development/sceneca/node_modules/seneca: undefined, undefined, undefined, ] [ /Users/rohitmahto/Development/sceneca: undefined, undefined, undefined, undefined, undefined, undefined, ] .","errline":"at use_plugin_desc (/Users/rohitmahto/Development/sceneca/node_modules/use-plugin/use.js:180:11)","orig$":{"eraro":true,"orig":null,"code":"not_found","use-plugin":true,"package":"use-plugin","msg":"use-plugin: Could not load plugin mongo-store; searched the following folder and file paths: [ /Users/rohitmahto/Development/sceneca/node_modules/seneca: undefined, undefined, undefined, ] [ /Users/rohitmahto/Development/sceneca: undefined, undefined, undefined, undefined, undefined, undefined, ] .","details":{"options":{"uri":"mongodb://mongo:mongo@localhost:27888/test"},"history":[{"module":"/Users/rohitmahto/Development/sceneca/node_modules/seneca/seneca.js","name":"seneca-mongo-store"},{"module":"/Users/rohitmahto/Development/sceneca/node_modules/seneca/seneca.js","name":"@seneca/mongo-store"},{"module":"/Users/rohitmahto/Development/sceneca/node_modules/seneca/seneca.js","name":"mongo-store"},{"module":".","name":"seneca-mongo-store"},{"module":".","name":"@seneca/mongo-store"},{"module":".","name":"mongo-store"},{"module":".","name":"./mongo-store"},{"module":".","name":"./seneca-mongo-store"},{"module":".","name":"./@seneca/mongo-store"}],"name":"mongo-store","full":"mongo-store","callpoint":"at Object.<anonymous> (/Users/rohitmahto/Development/sceneca/index.js:4:3)","search":[{"type":"normal","name":"seneca-mongo-store"},{"type":"normal","name":"@seneca/mongo-store"},{"type":"normal","name":"mongo-store"},{"type":"normal","name":"./mongo-store"},{"type":"normal","name":"./seneca-mongo-store"},{"type":"normal","name":"./@seneca/mongo-store"}],"modulepath":".","requirepath":"./@seneca/mongo-store","found":{"type":"normal","name":"./@seneca/mongo-store"},"defaults":{},"searchlist":"[ /Users/rohitmahto/Development/sceneca/node_modules/seneca: undefined, undefined, undefined, ] [ /Users/rohitmahto/Development/sceneca: undefined, undefined, undefined, undefined, undefined, undefined, ] "},"callpoint":"at Task.load [as exec] (/Users/rohitmahto/Development/sceneca/node_modules/seneca/lib/plugin.js:138:43)"},"message$":"use-plugin: Could not load plugin mongo-store; searched the following folder and file paths: [ /Users/rohitmahto/Development/sceneca/node_modules/seneca: undefined, undefined, undefined, ] [ /Users/rohitmahto/Development/sceneca: undefined, undefined, undefined, undefined, undefined, undefined, ] ."},"callpoint":"at use_plugin_desc (/Users/rohitmahto/Development/sceneca/node_modules/use-plugin/use.js:180:11)","seneca":true,"plugin_callpoint":"at Object.<anonymous> (/Users/rohitmahto/Development/sceneca/index.js:4:3)","fatal$":true},"isot":"2022-05-09T04:46:18.730Z","when":1652071578730,"level_name":"fatal","seneca_id":"h5l8f8q9hasu/1652071578642/2300/3.26.2/-"} {"kind":"listen","case":"INIT","data":[{"type":"http","port":3001}],"callpoint":"at Object.<anonymous> (/Users/rohitmahto/Development/sceneca/index.js:7:3)","level":300,"isot":"2022-05-09T04:46:18.733Z","when":1652071578733,"level_name":"info","seneca_id":"h5l8f8q9hasu/1652071578642/2300/3.26.2/-"} {"kind":"plugin","case":"READY","name":"transport","level":300,"isot":"2022-05-09T04:46:18.738Z","when":1652071578738,"level_name":"info","seneca_id":"h5l8f8q9hasu/1652071578642/2300/3.26.2/-","seneca_did":"gs86","plugin_name":"transport"} {"kind":"plugin","case":"READY","name":"mem-store","tag":1,"level":300,"isot":"2022-05-09T04:46:18.741Z","when":1652071578741,"level_name":"info","seneca_id":"h5l8f8q9hasu/1652071578642/2300/3.26.2/-","seneca_did":"o0mr","plugin_name":"mem-store"} {"kind":"plugin","case":"READY","name":"entity","level":300,"isot":"2022-05-09T04:46:18.742Z","when":1652071578742,"level_name":"info","seneca_id":"h5l8f8q9hasu/1652071578642/2300/3.26.2/-","seneca_did":"4db7","plugin_name":"entity"} Seneca Server listening on port 3001 {"kind":"notice","data":"hello h5l8f8q9hasu/1652071578642/2300/3.26.2/-","level":300,"isot":"2022-05-09T04:46:18.778Z","when":1652071578778,"level_name":"info","seneca_id":"h5l8f8q9hasu/1652071578642/2300/3.26.2/-"} ❯ node index {"kind":"fatal","level":600,"plugin":"seneca","tag":"3.26.2","id":"qqxkp8sjglur/1652071585467/2309/3.26.2/-","code":"not_found","notice":"seneca: use-plugin: Could not load plugin mongo-store; searched the following folder and file paths: [ /Users/rohitmahto/Development/sceneca/node_modules/seneca: undefined, undefined, undefined, ] [ /Users/rohitmahto/Development/sceneca: undefined, undefined, undefined, undefined, undefined, undefined, ] .","err":{"eraro":true,"orig":{"eraro":true,"orig":null,"code":"not_found","use-plugin":true,"package":"use-plugin","msg":"use-plugin: Could not load plugin mongo-store; searched the following folder and file paths: [ /Users/rohitmahto/Development/sceneca/node_modules/seneca: undefined, undefined, undefined, ] [ /Users/rohitmahto/Development/sceneca: undefined, undefined, undefined, undefined, undefined, undefined, ] .","details":{"options":{"uri":"mongodb://mongo:mongo@localhost:27888/test"},"history":[{"module":"/Users/rohitmahto/Development/sceneca/node_modules/seneca/seneca.js","name":"seneca-mongo-store"},{"module":"/Users/rohitmahto/Development/sceneca/node_modules/seneca/seneca.js","name":"@seneca/mongo-store"},{"module":"/Users/rohitmahto/Development/sceneca/node_modules/seneca/seneca.js","name":"mongo-store"},{"module":".","name":"seneca-mongo-store"},{"module":".","name":"@seneca/mongo-store"},{"module":".","name":"mongo-store"},{"module":".","name":"./mongo-store"},{"module":".","name":"./seneca-mongo-store"},{"module":".","name":"./@seneca/mongo-store"}],"name":"mongo-store","full":"mongo-store","callpoint":"at Object.<anonymous> (/Users/rohitmahto/Development/sceneca/index.js:4:3)","search":[{"type":"normal","name":"seneca-mongo-store"},{"type":"normal","name":"@seneca/mongo-store"},{"type":"normal","name":"mongo-store"},{"type":"normal","name":"./mongo-store"},{"type":"normal","name":"./seneca-mongo-store"},{"type":"normal","name":"./@seneca/mongo-store"}],"modulepath":".","requirepath":"./@seneca/mongo-store","found":{"type":"normal","name":"./@seneca/mongo-store"},"defaults":{},"searchlist":"[ /Users/rohitmahto/Development/sceneca/node_modules/seneca: undefined, undefined, undefined, ] [ /Users/rohitmahto/Development/sceneca: undefined, undefined, undefined, undefined, undefined, undefined, ] "},"callpoint":"at Task.load [as exec] (/Users/rohitmahto/Development/sceneca/node_modules/seneca/lib/plugin.js:138:43)"},"code":"not_found","use-plugin":true,"package":"seneca","msg":"seneca: use-plugin: Could not load plugin mongo-store; searched the following folder and file paths: [ /Users/rohitmahto/Development/sceneca/node_modules/seneca: undefined, undefined, undefined, ] [ /Users/rohitmahto/Development/sceneca: undefined, undefined, undefined, undefined, undefined, undefined, ] .","details":{"errmsg":"use-plugin: Could not load plugin mongo-store; searched the following folder and file paths: [ /Users/rohitmahto/Development/sceneca/node_modules/seneca: undefined, undefined, undefined, ] [ /Users/rohitmahto/Development/sceneca: undefined, undefined, undefined, undefined, undefined, undefined, ] .","errline":"at use_plugin_desc (/Users/rohitmahto/Development/sceneca/node_modules/use-plugin/use.js:180:11)","orig$":{"eraro":true,"orig":null,"code":"not_found","use-plugin":true,"package":"use-plugin","msg":"use-plugin: Could not load plugin mongo-store; searched the following folder and file paths: [ /Users/rohitmahto/Development/sceneca/node_modules/seneca: undefined, undefined, undefined, ] [ /Users/rohitmahto/Development/sceneca: undefined, undefined, undefined, undefined, undefined, undefined, ] .","details":{"options":{"uri":"mongodb://mongo:mongo@localhost:27888/test"},"history":[{"module":"/Users/rohitmahto/Development/sceneca/node_modules/seneca/seneca.js","name":"seneca-mongo-store"},{"module":"/Users/rohitmahto/Development/sceneca/node_modules/seneca/seneca.js","name":"@seneca/mongo-store"},{"module":"/Users/rohitmahto/Development/sceneca/node_modules/seneca/seneca.js","name":"mongo-store"},{"module":".","name":"seneca-mongo-store"},{"module":".","name":"@seneca/mongo-store"},{"module":".","name":"mongo-store"},{"module":".","name":"./mongo-store"},{"module":".","name":"./seneca-mongo-store"},{"module":".","name":"./@seneca/mongo-store"}],"name":"mongo-store","full":"mongo-store","callpoint":"at Object.<anonymous> (/Users/rohitmahto/Development/sceneca/index.js:4:3)","search":[{"type":"normal","name":"seneca-mongo-store"},{"type":"normal","name":"@seneca/mongo-store"},{"type":"normal","name":"mongo-store"},{"type":"normal","name":"./mongo-store"},{"type":"normal","name":"./seneca-mongo-store"},{"type":"normal","name":"./@seneca/mongo-store"}],"modulepath":".","requirepath":"./@seneca/mongo-store","found":{"type":"normal","name":"./@seneca/mongo-store"},"defaults":{},"searchlist":"[ /Users/rohitmahto/Development/sceneca/node_modules/seneca: undefined, undefined, undefined, ] [ /Users/rohitmahto/Development/sceneca: undefined, undefined, undefined, undefined, undefined, undefined, ] "},"callpoint":"at Task.load [as exec] (/Users/rohitmahto/Development/sceneca/node_modules/seneca/lib/plugin.js:138:43)"},"message$":"use-plugin: Could not load plugin mongo-store; searched the following folder and file paths: [ /Users/rohitmahto/Development/sceneca/node_modules/seneca: undefined, undefined, undefined, ] [ /Users/rohitmahto/Development/sceneca: undefined, undefined, undefined, undefined, undefined, undefined, ] ."},"callpoint":"at use_plugin_desc (/Users/rohitmahto/Development/sceneca/node_modules/use-plugin/use.js:180:11)","seneca":true,"plugin_callpoint":"at Object.<anonymous> (/Users/rohitmahto/Development/sceneca/index.js:4:3)","fatal$":true},"isot":"2022-05-09T04:46:25.529Z","when":1652071585529,"level_name":"fatal","seneca_id":"qqxkp8sjglur/1652071585467/2309/3.26.2/-"} {"kind":"listen","case":"INIT","data":[{"type":"http","port":3001}],"callpoint":"at Object.<anonymous> (/Users/rohitmahto/Development/sceneca/index.js:7:3)","level":300,"isot":"2022-05-09T04:46:25.532Z","when":1652071585532,"level_name":"info","seneca_id":"qqxkp8sjglur/1652071585467/2309/3.26.2/-"} {"kind":"plugin","case":"READY","name":"transport","level":300,"isot":"2022-05-09T04:46:25.537Z","when":1652071585537,"level_name":"info","seneca_id":"qqxkp8sjglur/1652071585467/2309/3.26.2/-","seneca_did":"80ml","plugin_name":"transport"} {"kind":"plugin","case":"READY","name":"mem-store","tag":1,"level":300,"isot":"2022-05-09T04:46:25.540Z","when":1652071585540,"level_name":"info","seneca_id":"qqxkp8sjglur/1652071585467/2309/3.26.2/-","seneca_did":"y7ip","plugin_name":"mem-store"} {"kind":"plugin","case":"READY","name":"entity","level":300,"isot":"2022-05-09T04:46:25.541Z","when":1652071585541,"level_name":"info","seneca_id":"qqxkp8sjglur/1652071585467/2309/3.26.2/-","seneca_did":"iv95","plugin_name":"entity"} Seneca Server listening on port 3001 {"kind":"notice","data":"hello qqxkp8sjglur/1652071585467/2309/3.26.2/-","level":300,"isot":"2022-05-09T04:46:25.596Z","when":1652071585596,"level_name":"info","seneca_id":"qqxkp8sjglur/1652071585467/2309/3.26.2/-"}
And here is the code:
const seneca = require("seneca")(); seneca .use("entity") .use("mongo-store", { uri: "mongodb://mongo:mongo@localhost:27888/test", }) .listen({ type: "http", port: 3001 }, () => { console.log("Seneca Server listening on port 3001"); });
package.json
{ "name": "sceneca", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC", "dependencies": { "npm": "^8.9.0", "seneca": "^3.26.2", "seneca-entity": "^16.4.0", "seneca-mongo-store": "^5.0.1" } }