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
Started running into this issue with pretty much any payload. E.g. const truncated = truncate('<p><img src="xxx.jpg">Hello from earth!</p>', 2, { byWords: true });
throws an error. Stacktrace:
uncaughtException: Cannot read properties of undefined (reading 'load')
TypeError: Cannot read properties of undefined (reading 'load')
at $742b69707032309e$var$truncate (/home/user/repo/packages/api/node_modules/truncate-html/dist/truncate.cjs.js:154:55)
Looks like the line in question is $ = (0, ($parcel$interopDefault($1J0WF$cheerio))).load(${html}, {.
Downgrading to 1.1.1 does not seem to fix this.
The text was updated successfully, but these errors were encountered:
Please upgrade to version v1.1.2 and make sure that the version of cheerio is 1.0.0-rc.12 (check with yarn why cheerio, or check the node_modules folder to verify).
It's a problem caused by the stable release of cheerio v1.0.0. related links: #39 , release v1.1.2
Started running into this issue with pretty much any payload. E.g.
const truncated = truncate('<p><img src="xxx.jpg">Hello from earth!</p>', 2, { byWords: true });
throws an error. Stacktrace:
Looks like the line in question is
$ = (0, ($parcel$interopDefault($1J0WF$cheerio))).load(
${html}, {
.Downgrading to 1.1.1 does not seem to fix this.
The text was updated successfully, but these errors were encountered: