koajs/cors

error: uncaughtException: Cannot find module '@koa/cors'

nitrocode opened this issue · 4 comments

node throws this exception

error: uncaughtException: Cannot find module '@koa/cors' date=Mon Nov 20 2017 08:02:33

when requiring this module

const cors = require('@koa/cors');

Is this module still updated?

rapzo commented

I think that @koa never got done. There's an open issue #35

But yeah, it has been silent for a while...

Works for me on a mac, but doesn't on Raspbian. npm i kcors@2 works, for some reason. Weird.

krini commented

It also works for me on a mac.