Closed mchavezi closed 7 years ago
Removing default
from
const CSRF = require('koa-csrf').default
solved the error.
We're now exporting via module.exports
, so you no longer need to grab .default
. Sorry for the confusion!
EDIT: For anyone following - this does not change the behavior when using import
with a transpiler (Babel).
I cloned this repo: https://github.com/mapmeld/koa-passport-example and getting this crucial error:
I am running inside docker containers using docker-compose and the mac client.
I am not sure how to solve.