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

typescript error in think-cluster #1512

Open
gitnewer opened this issue Sep 10, 2020 · 0 comments
Open

typescript error in think-cluster #1512

gitnewer opened this issue Sep 10, 2020 · 0 comments

Comments

@gitnewer
Copy link

gitnewer commented Sep 10, 2020

DESC

node_modules/think-cluster/index.d.ts:8:27 - error TS2689: Cannot extend an interface 'NodeJS.EventEmitter'. Did you mean 'implements'?

8 class Messenger extends NodeJS.EventEmitter {
~~~~~~

Found 1 error.

ENV

OS Platform: linux

Node.js Version: 12

ThinkJS Version: 3.2.11

more description

There is an error when use think-cli to create new project .

run npm run compile,

This error happen.

resolve method

from

  class Messenger extends NodeJS.EventEmitter {
  constructor();

change to

  interface Messenger extends NodeJS.EventEmitter {
    // constructor();
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