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

Cannot read property 'replace' of undefined #2

Open
Dada2201 opened this issue Oct 11, 2021 · 0 comments
Open

Cannot read property 'replace' of undefined #2

Dada2201 opened this issue Oct 11, 2021 · 0 comments

Comments

@Dada2201
Copy link

Dada2201 commented Oct 11, 2021

Hey,

got this while running the cli.js

  return parseInt(classes[0].replace('r-card', ''));
                             ^

TypeError: Cannot read property 'replace' of undefined
    at ConsumableElement.getConsumableID (/Users/dleneveu/dev/isaac/platgod-scraper/scraper/ConsumableElement.js:16:30)
    at ConsumableElement.toJSON (/Users/dleneveu/dev/isaac/platgod-scraper/scraper/ConsumableElement.js:39:24)
    at /Users/dleneveu/dev/isaac/platgod-scraper/scraper/platinum_god.js:78:35
    at next (/Users/dleneveu/dev/isaac/platgod-scraper/node_modules/x-ray/index.js:146:11)
    at /Users/dleneveu/dev/isaac/platgod-scraper/node_modules/x-ray/index.js:259:7
    at /Users/dleneveu/dev/isaac/platgod-scraper/node_modules/x-ray/lib/walk.js:56:12
    at /Users/dleneveu/dev/isaac/platgod-scraper/node_modules/batch/index.js:161:14
    at processTicksAndRejections (internal/process/task_queues.js:79:11)
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