Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: handler is not a constructor #46

Closed
theromie opened this issue May 13, 2020 · 0 comments
Closed

TypeError: handler is not a constructor #46

theromie opened this issue May 13, 2020 · 0 comments

Comments

@theromie
Copy link

After running jest test I am getting TypeError: handler is not a constructor
I am using node version : v10.16.0 and mapper version : v1.1.0

code
const mapRoutes = require('express-routes-mapper');
const mappedOpenRoutes = mapRoutes(config.publicRoutes, 'api/controllers/');

at mappedOpenRoutes = mapRoutes giving error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant