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

npm build failed #26

Open
songtianyi opened this issue Sep 2, 2022 · 1 comment
Open

npm build failed #26

songtianyi opened this issue Sep 2, 2022 · 1 comment

Comments

@songtianyi
Copy link

actor-twitter-scraper on ξ‚  master is πŸ“¦ v3.0.3 via  v14.19.3 took 1m24s
❯ npm install

actor-twitter-scraper on ξ‚  master is πŸ“¦ v3.0.3 via  v14.19.3
❯ npm run build

> twitter-scraper@3.0.3 build /Users/songtianyi/github/actor-twitter-scraper
> tsc

src/helpers.ts:455:31 - error TS2684: The 'this' context of type 'ElementHandle<Node>' is not assignable to method's 'this' of type 'ElementHandle<Element>'.
  Type 'Node' is missing the following properties from type 'Element': attributes, classList, className, clientHeight, and 110 more.

455                         await button.click();
                                  ~~~~~~


Found 1 error in src/helpers.ts:455

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! twitter-scraper@3.0.3 build: `tsc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the twitter-scraper@3.0.3 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/songtianyi/.npm/_logs/2022-09-02T08_16_48_417Z-debug.log
@pocesar
Copy link
Owner

pocesar commented Sep 2, 2022

thanks for the report, seems to have been caused by Typescript 4.8. also you'll need Node 16 to run it

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

2 participants