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

Getting exception while adding cors preflight and actual to restify server. #77

Open
SreekanthOAuth opened this issue Nov 20, 2019 · 2 comments

Comments

@SreekanthOAuth
Copy link

SreekanthOAuth commented Nov 20, 2019

From today morning we are getting below exception while triggering build (in Linux machine) to remote service.

error TS2345: Argument of type 'RequestHandler' is not assignable to parameter of type 'RequestHandlerType'.

Complete error

src/index.ts(198,12): error TS2345: Argument of type 'RequestHandler' is not assignable to parameter of type 'RequestHandlerType'. Type 'import("/home/vsts/work/1/s/src/virtualAssistant/node_modules/@types/restify-cors-middleware/node_modules/@types/restify/index").RequestHandler' is not assignable to type 'import("/home/vsts/work/1/s/src/virtualAssistant/node_modules/@types/restify/index").RequestHandler'. Types of parameters 'req' and 'req' are incompatible. Type 'import("/home/vsts/work/1/s/src/virtualAssistant/node_modules/@types/restify/index").Request' is not assignable to type 'import("/home/vsts/work/1/s/src/virtualAssistant/node_modules/@types/restify-cors-middleware/node_modules/@types/restify/index").Request'. Types of property 'files' are incompatible.

It's working fine in localhost (Windows 10).

Versions which we are using for below
"restify": "^6.3.4",
"restify-cors-middleware": "^1.1.1",

Please suggests us on this.

Thanks,
Sreekanth

@SreekanthOAuth
Copy link
Author

SreekanthOAuth commented Nov 21, 2019

We are stuck. Any updates, please?

Thanks,
Sreekanth

@SreekanthOAuth
Copy link
Author

Any updates, please?

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