microlinkhq / metascraper

Get unified metadata from websites using Open Graph, Microdata, RDFa, Twitter Cards, JSON-LD, HTML, and more.
https://metascraper.js.org
MIT License
2.35k stars 168 forks source link

TypeError: memoizeOne is not a function #432

Closed byteab closed 3 years ago

byteab commented 3 years ago

I am using metascraper in Expo ( a favor of React native ). after running and building the project on the web. this issue arises.

TypeError: memoizeOne is not a function
node_modules/@metascraper/helpers/index.js:280
Kikobeats commented 3 years ago

Can you do a console.log(require('memoize-one')) to see what's is returning?

byteab commented 3 years ago

after changing const memoizeOne = require('memoize-one') to const memoizeOne = require('memoize-one').default issue fixed

Kikobeats commented 3 years ago

Thanks, that was my suspicion.

Released metascraper@5.22.9 if you install it should be work fine now 🙂

byteab commented 3 years ago

@Kikobeats thank you. I was going to make a PR and then I found that you just released a new version.