You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: url.match is not a function
at getSize (webpack-internal:///(rsc)/../../node_modules/metascraper-logo-favicon/src/index.js:66:20)
at eval (webpack-internal:///(rsc)/../../node_modules/metascraper-logo-favicon/src/index.js:82:17)
at arrayReduce (webpack-internal:///(rsc)/../../node_modules/lodash/lodash.js:698:21)
at Function.reduce (webpack-internal:///(rsc)/../../node_modules/lodash/lodash.js:9750:14)
at eval (webpack-internal:///(rsc)/../../node_modules/lodash/lodash.js:4431:28)
at arrayReduce (webpack-internal:///(rsc)/../../node_modules/lodash/lodash.js:698:21)
at baseWrapperValue (webpack-internal:///(rsc)/../../node_modules/lodash/lodash.js:4430:14)
at LodashWrapper.wrapperValue (webpack-internal:///(rsc)/../../node_modules/lodash/lodash.js:9115:14)
at getDomNodeSizes (webpack-internal:///(rsc)/../../node_modules/metascraper-logo-favicon/src/index.js:86:6)
at eval (webpack-internal:///(rsc)/../../node_modules/metascraper-logo-favicon/src/index.js:92:26)
at arrayReduce (webpack-internal:///(rsc)/../../node_modules/lodash/lodash.js:698:21)
at Function.reduce (webpack-internal:///(rsc)/../../node_modules/lodash/lodash.js:9750:14)
at eval (webpack-internal:///(rsc)/../../node_modules/lodash/lodash.js:4431:28)
at arrayReduce (webpack-internal:///(rsc)/../../node_modules/lodash/lodash.js:698:21)
at baseWrapperValue (webpack-internal:///(rsc)/../../node_modules/lodash/lodash.js:4430:14)
at LodashWrapper.wrapperValue (webpack-internal:///(rsc)/../../node_modules/lodash/lodash.js:9115:14)
at getSizes (webpack-internal:///(rsc)/../../node_modules/metascraper-logo-favicon/src/index.js:94:6)
at eval (webpack-internal:///(rsc)/../../node_modules/metascraper-logo-favicon/src/index.js:244:23)
at eval (webpack-internal:///(rsc)/../../node_modules/@metascraper/helpers/index.js:444:29)
at findRule (webpack-internal:///(rsc)/../../node_modules/@metascraper/helpers/index.js:434:35)
at eval (webpack-internal:///(rsc)/../../node_modules/metascraper/src/get-data.js:11:27)
at arrayMap (webpack-internal:///(rsc)/../../node_modules/lodash/lodash.js:654:23)
at map (webpack-internal:///(rsc)/../../node_modules/lodash/lodash.js:9623:14)
at getData (webpack-internal:///(rsc)/../../node_modules/metascraper/src/get-data.js:10:5)
at eval (webpack-internal:///(rsc)/../../node_modules/metascraper/src/index.js:29:12)
getSize is expecting url to be a string, but it's a URL sometimes
it looks to me like normalizedUrl should be passed in to getSize, and not url?
The text was updated successfully, but these errors were encountered:
aldenquimby
changed the title
metascraper-logo-favicon should not fail with "url.match is not a function"
metascraper-logo-favicon should allow URL input
Oct 2, 2024
aldenquimby
added a commit
to aldenquimby/metascraper
that referenced
this issue
Oct 2, 2024
aldenquimby
changed the title
metascraper-logo-favicon should allow URL input
metascraper-logo-favicon should prioritize png over ico and allow URL input
Oct 2, 2024
Prerequisites
package.json
.Subject of the issue
Two related issues:
metascraper-logo-favicon should prioritize png over ico. basically this code should be running:
metascraper/packages/metascraper-logo-favicon/src/index.js
Lines 54 to 61 in cfe41bb
metascraper-logo-favicon should not fail with "url.match is not a function" when
URL
is supplied instead ofstring
metascraper
,metascraper-title
,metascraper-image
, andmetascraper-description
all work withURL
orstring
as inputSteps to reproduce
metascraper-logo-favicon
with any URL:Expected behaviour
Actual behaviour
Tech Notes
metascraper/packages/metascraper-logo-favicon/src/index.js
Line 81 in 7a504f7
getSize
is expectingurl
to be a string, but it's aURL
sometimesnormalizedUrl
should be passed in togetSize
, and noturl
?The text was updated successfully, but these errors were encountered: