Adding the argument 'basePath' to the function of export