Giter Site home page Giter Site logo

getInfoFromName don't work about malscraper HOT 4 CLOSED

kylart avatar kylart commented on June 18, 2024
getInfoFromName don't work

from malscraper.

Comments (4)

Kylart avatar Kylart commented on June 18, 2024 1

Alright, some update on this as we never really understood when that problem came from.

It seems to be a problem related to using mal-scraper with Babel. When using Babel and importing mal-scraper, you get an error that match is not a function. While I don't really understand why, it seems to be the cause.

Hence, v2.5.2 implement a fix where someone can pass a additional argument to use the so-called match function.

Please use getInfoFromName with a second argument set to false if you have that error.

from malscraper.

Kylart avatar Kylart commented on June 18, 2024

So it would seem that for some reason, mal-scraper's dependencies were not correctly installed by your app. There are multiple reasons that would bring to this.

Your problem is that match-sorter is not being packaged / installed in your app.

So the best thing to do there would be to nuke your node_modules and maybe package-lock.json and run a npm install again.

from malscraper.

xdk78 avatar xdk78 commented on June 18, 2024

I did it twice, but problem still appears.
Maybe is related to yarn?
#11

from malscraper.

Kylart avatar Kylart commented on June 18, 2024

What is your npm version and OS?

I tried again on Mac and Windows with and without yarn but still works 🤔

from malscraper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.