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: Cannot read property 'use' of undefined #1

Open
s7dhansh opened this issue Oct 8, 2020 · 1 comment
Open

TypeError: Cannot read property 'use' of undefined #1

s7dhansh opened this issue Oct 8, 2020 · 1 comment

Comments

@s7dhansh
Copy link

s7dhansh commented Oct 8, 2020

Hi,
I am getting the following error. Can someone please help?

TypeError: Cannot read property 'use' of undefined
at module (packages/alawi:ssr-helper/serverHelper.js:11:1)
@s7dhansh
Copy link
Author

s7dhansh commented Oct 8, 2020

I had to relace https://github.com/aliogaili/ssr-helper/blob/0f8e0f05e68e6aa958edb76e939a2c62ddeabb42/serverHelper.js#L11 with:

WebApp.connectHandlers.use(cookieParser());
WebApp.connectHandlers.use(function(req, res, next) {

Though I have tested it, let me know if it is correct and I should create a PR.

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