Comments (2)
I will update the documentation to be more clear about router middleware position in the stack.
The router is just middleware, so if you include it before middleware that sets properties you are accessing you'll run into this issue.
from koa-router.
Yep, my fault.
from koa-router.
Related Issues (20)
- Got 404 rather than 500 HOT 2
- Exceptions throw 404 rather than 500 HOT 1
- Map of middleware doesn't work HOT 3
- Critical Dependency error from outdated koa-compose HOT 1
- Can you please give me npm and GitHub access? HOT 8
- Lack of group functionality like that in laravel
- The ctx. _matchedRoute is not the route I requested! HOT 6
- router.param handler called once per middleware i/o once per request
- Getting 404 for all router.post response HOT 4
- One problem with Router.url()
- Multi routes will be called if the last middleware call next()
- log messages flooding console
- Router GET with parameter and Nested Routes It's possible? HOT 1
- Add readme note about @koa/router HOT 3
- Enable a configuration parameter to restrict URL length
- koa-router v9 not supporting wildcard anymore? HOT 2
- Error: Cannot find module 'koa-router' HOT 2
- router reuse error
- Can not install via npm?
- Update `http-errors` to v2+
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from koa-router.