Closed anirbanroydas closed 7 years ago
You are using koa@1.x
but koa-views@5.x
needs koa@2
or above. If you are still at v1
please consider using koa-views@4.x
. Note however, there are no updates supporting v1
@queckezz : But koa@2 supports async/await, but its still not supported under bare node js. Also, the generators are a great concept, why the decision not to support koa@1.x ?
I don't have time to simultaneously support both versions and had to make the decision to support only one. Since people seemed to move on to @2
I decided to go for @2
maintenance only. However, koa-views@4
should be stable as is, and can still be used.
@queckezz Okay. Thanks for the quick response.
I am using the koa-views in the exact way as mentioned in the README. But somehow its giving me the following assertion error:
Versions Info:
I have a mvc design. I am furnishing my code below:
server.js
indexRoute.js
chatRoute.js
indexView.js
chatView.js
NOTE : If I don't use the koa-views middleware, my server runs absolutely fine with all the router functioning properly.
What am I missing here?