Please help me. I'm very ordinary on loopback 4. Error: The key rest.sequence.actions.findRoute was not bound to any value
I have an error like this
Error: The key rest.sequence.actions.findRoute was not bound to any value.
when I run npm start and run " http://127.0.0.1:3001 " in the browser.
and I am now confused what to do. Please help me
Error
get-started-loop npm start
[email protected] start /home/ulul/jm-blank/get-started-loop npm run build && node .
[email protected] build /home/ulul/jm-blank/get-started-loop lb-tsc
Server is running at http://127.0.0.1:3001 Try http://127.0.0.1:3001/ping /home/ulul/jm-blank/get-started-loop/node_modules/@loopback/rest/dist/src/rest-server.js:423 throw err; ^
Error: The key rest.sequence.actions.findRoute was not bound to any value.
at GetStartedLoopApplication.getBinding (/home/ulul/jm-blank/get-started-loop/node_modules/@loopback/context/dist/src/context.js:242:15)
at RestServer.getBinding (/home/ulul/jm-blank/get-started-loop/node_modules/@loopback/context/dist/src/context.js:238:33)
at Context.getBinding (/home/ulul/jm-blank/get-started-loop/node_modules/@loopback/context/dist/src/context.js:238:33)
at Context.getValueOrPromise (/home/ulul/jm-blank/get-started-loop/node_modules/@loopback/context/dist/src/context.js:276:30)
at resolution_session_1.ResolutionSession.runWithInjection.s (/home/ulul/jm-blank/get-started-loop/node_modules/@loopback/context/dist/src/resolver.js:108:24)
at value_promise_1.tryWithFinally (/home/ulul/jm-blank/get-started-loop/node_modules/@loopback/context/dist/src/resolution-session.js:89:53)
at Object.tryWithFinally (/home/ulul/jm-blank/get-started-loop/node_modules/@loopback/context/dist/src/value-promise.js:157:18)
at Function.runWithInjection (/home/ulul/jm-blank/get-started-loop/node_modules/@loopback/context/dist/src/resolution-session.js:89:32)
at resolve (/home/ulul/jm-blank/get-started-loop/node_modules/@loopback/context/dist/src/resolver.js:101:59)
at value_promise_1.resolveList (/home/ulul/jm-blank/get-started-loop/node_modules/@loopback/context/dist/src/resolver.js:169:16)
at Object.resolveList (/home/ulul/jm-blank/get-started-loop/node_modules/@loopback/context/dist/src/value-promise.js:130:32)
at resolveInjectedArguments (/home/ulul/jm-blank/get-started-loop/node_modules/@loopback/context/dist/src/resolver.js:153:28)
at Object.instantiateClass (/home/ulul/jm-blank/get-started-loop/node_modules/@loopback/context/dist/src/resolver.js:37:27)
at Binding._getValue (/home/ulul/jm-blank/get-started-loop/node_modules/@loopback/context/dist/src/binding.js:356:55)
at resolution_session_1.ResolutionSession.runWithBinding.s (/home/ulul/jm-blank/get-started-loop/node_modules/@loopback/context/dist/src/binding.js:219:90)
at value_promise_1.tryWithFinally (/home/ulul/jm-blank/get-started-loop/node_modules/@loopback/context/dist/src/resolution-session.js:69:53)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: npm run build && node .
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /home/ulul/.npm/_logs/2019-02-15T03_13_31_493Z-debug.log ➜ get-started-loop
@ululajib, do you have a sample app that I can try? I can take a look at it tomorrow unless someone else get to it.
@dhmlau I just installed it and it keeps running npm start, and I immediately got the error
Let's make sure we have the right enviornment, and I have a few questions:
- which version of Node.js are you running? It needs to be 8.9+
- which OS are you running on?
- by default, the REST server is running on port 3000. Did you add/modify the server?
One way to isolate whether it's your app's issue is to install and run the todo example. Please follow the following steps to see if you're still running into the same issue:
- install LB4 cli (latest is
@loopback/[email protected])
npm i -g @loopback/cli
- Run
lb4 example todoto download the todo example - Start the app
npm start
Hope it helps.
@ululajib , does installing the latest version of loopback-next modules help?
@ululajib , any updates?
forgive me, I can only reply now. yeah after I update everything runs perfectly. thank you and apologize.
Pada tanggal Sel, 19 Mar 2019 pukul 09.37 Diana Lau < [email protected]> menulis:
@ululajib https://github.com/ululajib , any updates?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/strongloop/loopback-next/issues/2402#issuecomment-474175316, or mute the thread https://github.com/notifications/unsubscribe-auth/AYylpNenOJar9lUK8jcLTcPKfd2Zyq2Cks5vYE1hgaJpZM4a83ZH .