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

Deploy not working due to typescript property/element error #16

Open
ffumarola opened this issue Jan 21, 2021 · 0 comments
Open

Deploy not working due to typescript property/element error #16

ffumarola opened this issue Jan 21, 2021 · 0 comments

Comments

@ffumarola
Copy link

Hey Jean!

Would you be able to help with this issue? Pretty much, Youtube is causing an issue with the Typescript compiling. When commenting out all of the YT references it compiles and deploys fine.

Thanks!

followers-scraper-serverless % npm run deploy

> [email protected] deploy
> npm run build && sls deploy --verbose


> [email protected] build
> tsc

src/lib/scraper/followers-scraper.ts:9:36 - error TS2339: Property 'attribs' does not exist on type 'Element'.
  Property 'attribs' does not exist on type 'TextElement'.

9         return parseInt(subsBtn[0].attribs['title'])
                                     ~~~~~~~


Found 1 error.

npm ERR! code 2
npm ERR! path /Users/x/Documents/scrapey/followers-scraper-serverless
npm ERR! command failed
npm ERR! command sh -c tsc

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/x/.npm/_logs/2021-01-21T20_36_47_523Z-debug.log
npm ERR! code 2
npm ERR! path /Users/x/Documents/scrapey/followers-scraper-serverless
npm ERR! command failed
npm ERR! command sh -c npm run build && sls deploy --verbose

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/x/.npm/_logs/2021-01-21T20_36_47_565Z-debug.log
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