use export default function* function-name, this may help you .
export default function* function-name