-
Notifications
You must be signed in to change notification settings - Fork 16
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 #38
Comments
Hey, what version of node, and express routes mapper do you use? do you use a lock file? do you have a different version of node, express routes mapper locally and on the ci/cd server? |
Hello @aichbauer , Sorry for the missing description. I don't use lock file; Project dependencies "dependencies": {
"convict": "^5.2.0",
"core-js": "^2.6.10",
"express": "~4.17.1",
"express-prettify": "^0.1.1",
"express-prom-bundle": "^5.1.5",
"express-routes-mapper": "^1.1.0",
"express-validator": "^6.2.0",
"got": "^9.6.0",
"morgan": "~1.9.1",
"prom-client": "^11.5.3",
"redis": "^2.8.0",
"svg-captcha": "^1.4.0",
"uuid": "^3.3.3"
},
"devDependencies": {
"eslint": "^6.5.1",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-plugin-import": "^2.18.2",
"husky": "^3.0.9",
"jest": "^24.9.0",
"nodemon": "^1.19.4",
"redis-mock": "^0.46.0",
"shx": "^0.3.2",
"supertest": "^4.0.2"
} Local node version
Dockerfile
|
Can you test: what happens if you add what happens if you locally delete the node_modules folder and run what happens if you remove the |
I got the exact message when I composed controller construction function return statement with too many endpoints. So linter should see that stuff was undefined. |
Got the same message, but the my controller was wrong. I did not export corectly, so the router did not find it. |
I have raised a pull request to resolve this issue. |
Hello, i'm getting an error just like the same as in the #36
But the weird thing is, the exception only happening on CI/CD which i tried to use both latest
alpine
andstretch
images.Here is the packages in use:
and here is the stack trace from the
jest
outputThe text was updated successfully, but these errors were encountered: