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

scrapeHTML is not defined #164

Closed
tdukart opened this issue Jan 29, 2021 · 1 comment · Fixed by #165
Closed

scrapeHTML is not defined #164

tdukart opened this issue Jan 29, 2021 · 1 comment · Fixed by #165
Assignees
Labels

Comments

@tdukart
Copy link

tdukart commented Jan 29, 2021

On scrape-it 5.3.0 I'm getting the following error:

/path/to/my/project/node_modules/scrape-it/lib/index.js:124
scrapeIt.scrapeHTML = scrapeHTML;
                      ^

ReferenceError: scrapeHTML is not defined
    at Object.<anonymous> (/path/to/my/project/node_modules/scrape-it/lib/index.js:124:23)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (/Users/todd.dukart/dev/vaccine-scraper/lib/getSpreadsheetUrl.js:2:18)
    at Module._compile (internal/modules/cjs/loader.js:701:30)

The error doesn't manifest on 5.2.4.

@vladcosorg
Copy link

Just spent an hour trying to understand what is happening lol
The var is lowercase
var scrapeHtml = require("scrape-it-core")
and the assignment is uppercase
scrapeIt.scrapeHTML = scrapeHTML

rollback to 5.2.4 for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants