Loopback: Version 2.22.0 crashes on any request after doing npm update

Created on 17 Aug 2016  路  3Comments  路  Source: strongloop/loopback

Loopback shows this error

loopback deprecated loopback#context middleware is deprecated. See https://docs.strongloop.com/display/APIC/Using%20current%20context for more details. at node_modules/loopback/server/middleware/rest.js:60:32

No context available. ns.run() or ns.bind() must be called first.

The middleware config is as same as when using version 2.21.0

bug

Most helpful comment

All 3 comments

Unfortunately still there even after the latest update :-(
Sun, 28 Aug 2016 03:20:06 GMT loopback deprecated loopback#context middleware is deprecated. See https://docs.strongloop.com/display/APIC/Using%20current%20context for more details. at node_modules/loopback/server/middleware/rest.js:60:32

+-- [email protected] 
| +-- [email protected] 
| `-- [email protected] 
|   `-- [email protected] 
+-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| `-- [email protected] 
+-- [email protected] 
| +-- [email protected] 
| `-- [email protected] 
|   +-- [email protected] 
|   +-- [email protected] 
|   +-- [email protected] 
|   `-- [email protected] 
+-- [email protected] 
| `-- [email protected] 
+-- [email protected] 
| +-- [email protected] 
| `-- [email protected] 
|   `-- [email protected] 
+-- [email protected] 
+-- [email protected] 
| +-- [email protected] 
| `-- [email protected] 
`-- [email protected] 

@terehov please open a new issue and describe how to reproduce the problem locally, ideally by creating a sandbox app per our wiki instructions.

Was this page helpful?
0 / 5 - 0 ratings