question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Firebase Functions / Cheerio

See original GitHub issue

Hi

I’m trying to deploy a function to firebase but as soon as I try, I receive this error with the package: node_modules/scrape-it/lib/index.d.ts(9,35): error TS2304: Cannot find name 'CheerioSelector'. node_modules/scrape-it/lib/index.d.ts(22,41): error TS2304: Cannot find name 'CheerioStatic'.

Any idea how I can fix this?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
divanvbcommented, Jan 18, 2018

@AndrewNeo So I’ve just installed the @types/cheerio like you suggested a dependency, and it seems to build now. I’m going to deploy now and then will report back if it was successful.

1reaction
divanvbcommented, Jan 18, 2018

@AndrewNeo How would you add the @types/cheerio directly as I’ve tried npm installing it directly if that’s what you meant with your previous comment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Firebase cloud function to scrap html and send the content ...
Firebase cloud function to scrap html and send the content with push notifications - firebase-scraping.js. ... const cheerio = require('cheerio');.
Read more >
Handling dependencies | Cloud Functions for Firebase - Google
A function is allowed to use external Node.js modules as well as local data. Dependencies in Node.js are managed with npm and expressed...
Read more >
Using Firebase Cloud Functions to Generate URL Preview
In this article we are going to learn how to use Firebase cloud functions to parse the URL og tags and display the...
Read more >
How to make multiple http requests from a Google Cloud ...
I'm building a web-scraper with Cheerio, Node.js, and Google Cloud Functions. The problem is I need to make multiple requests, ...
Read more >
firebase - cloud functions - node.js - CodeBiddya
This article outlines how to deploy the functions for scraping with Puppeteer and Cheerio using Firebase Cloud Functions - a functionality that ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found