You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the package has @types/express and @types/qs as package depedencies; this causes things to break if the containing package uses a different version.
Steps to Reproduce
Install a different version of those packages and then install twilio. Watch typescript blow up.
9:37:21 PM - File change detected. Starting incremental compilation...
node_modules/twilio/node_modules/@types/express/index.d.ts(59,29): error TS2694: Namespace 'serveStatic' has no exported member 'RequestHandlerConstructor'.
node_modules/twilio/node_modules/@types/express/index.d.ts(98,108): error TS2694: Namespace '"/Users/richard/code/ham/hamstudy2/node_modules/@types/express-serve-static-core/index"' has no exported member 'Query'.
node_modules/twilio/node_modules/@types/express/index.d.ts(99,17): error TS2707: Generic type 'ErrorRequestHandler' requires between 0 and 3 type arguments.
node_modules/twilio/node_modules/@types/express/index.d.ts(108,96): error TS2694: Namespace '"/Users/richard/code/ham/hamstudy2/node_modules/@types/express-serve-static-core/index"' has no exported member 'Query'.
node_modules/twilio/node_modules/@types/express/index.d.ts(108,111): error TS2707: Generic type 'Request<P, ResBody, ReqBody>' requires between 0 and 3 type arguments.
node_modules/twilio/node_modules/@types/express/index.d.ts(109,103): error TS2694: Namespace '"/Users/richard/code/ham/hamstudy2/node_modules/@types/express-serve-static-core/index"' has no exported member 'Query'.
node_modules/twilio/node_modules/@types/express/index.d.ts(109,118): error TS2707: Generic type 'RequestHandler<P, ResBody, ReqBody>' requires between 0 and 3 type arguments.
9:38:04 PM - Found 7 errors. Watching for file changes.
Suggested fix
You should never have dependencies like that in a library package; instead make them devDependencies and add them as peerDependencies.
The text was updated successfully, but these errors were encountered:
+1 after installed twilio in my NestJS application, I can't run it node_modules/twilio/node_modules/@types/express/index.d.ts:59:29 - error TS2694: Namespace 'serveStatic' has no exported member 'RequestHandlerConstructor'.
Issue Summary
Currently the package has @types/express and @types/qs as package depedencies; this causes things to break if the containing package uses a different version.
Steps to Reproduce
Install a different version of those packages and then install twilio. Watch typescript blow up.
Suggested fix
You should never have dependencies like that in a library package; instead make them devDependencies and add them as peerDependencies.
The text was updated successfully, but these errors were encountered: