Skip to content

npm build failedΒ #26

@songtianyi

Description

@songtianyi
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions