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

Compilation errors with TypeScript v4.4 in CI builds #1089

Closed
4 of 10 tasks
seratch opened this issue Aug 26, 2021 · 0 comments · Fixed by #1091
Closed
4 of 10 tasks

Compilation errors with TypeScript v4.4 in CI builds #1089

seratch opened this issue Aug 26, 2021 · 0 comments · Fixed by #1091
Assignees
Labels
tests M-T: Testing work only TypeScript-specific
Milestone

Comments

@seratch
Copy link
Member

seratch commented Aug 26, 2021

Description

src/App.ts:680:7 - error TS2571: Object is of type 'unknown'.

680       error.code = 'slack_bolt_authorization_error';
          ~~~~~

src/App.ts:681:31 - error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'Error'.

681       return this.handleError(error);
                                  ~~~~~

src/App.ts:857:31 - error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'Error'.

857       return this.handleError(error);
                                  ~~~~~

src/conversation-store.ts:67:13 - error TS2571: Object is of type 'unknown'.

67         if (error.message !== undefined && error.message !== 'Conversation not found') {
               ~~~~~

src/conversation-store.ts:67:44 - error TS2571: Object is of type 'unknown'.

67         if (error.message !== undefined && error.message !== 'Conversation not found') {
                                              ~~~~~

src/conversation-store.ts:69:97 - error TS2571: Object is of type 'unknown'.

69           logger.debug(`Conversation context failed loading for ID: ${conversationId}, error: ${error.message}`);
                                                                                                   ~~~~~

src/receivers/HTTPReceiver.ts:169:13 - error TS2571: Object is of type 'unknown'.

169         if (error.code === ErrorCode.HTTPReceiverDeferredRequestError) {
                ~~~~~

src/receivers/HTTPReceiver.ts:279:58 - error TS2571: Object is of type 'unknown'.

279         this.logger.warn(`Request verification failed: ${err.message}`);
                                                             ~~~

src/receivers/HTTPReceiver.ts:292:53 - error TS2571: Object is of type 'unknown'.

292         this.logger.warn(`Malformed request body: ${err.message}`);
                                                        ~~~

src/receivers/SocketModeReceiver.ts:126:29 - error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'string | undefined'.
  Type 'unknown' is not assignable to type 'string'.

126             throw new Error(err);
                                ~~~

Found 10 errors.

What type of issue is this? (place an x in one of the [ ])

  • bug
  • enhancement (feature request)
  • question
  • documentation related
  • example code related
  • testing related
  • discussion

Requirements (place an x in each of the [ ])

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.
@seratch seratch added tests M-T: Testing work only TypeScript-specific labels Aug 26, 2021
@seratch seratch added this to the 3.7.0 milestone Aug 26, 2021
@seratch seratch changed the title Compilation errors with TypeScript v4.4.1 in CI builds Compilation errors with TypeScript v4.4 in CI builds Aug 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests M-T: Testing work only TypeScript-specific
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants