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 find name 'CheerioStatic'. #32

Closed
pec1985 opened this issue Jul 8, 2021 · 1 comment
Closed

Cannot find name 'CheerioStatic'. #32

pec1985 opened this issue Jul 8, 2021 · 1 comment

Comments

@pec1985
Copy link

pec1985 commented Jul 8, 2021

NodeJS app. npm install --save truncate-html

Works fine when working locally and in development. But as soon as I do "npm run build" it fails.

node_modules/truncate-html/dist/truncate.d.ts:52:21 - error TS2304: Cannot find name 'CheerioStatic'.

52     (html: string | CheerioStatic, length?: number, options?: IOptions): string;
                       ~~~~~~~~~~~~~

node_modules/truncate-html/dist/truncate.d.ts:53:21 - error TS2304: Cannot find name 'CheerioStatic'.

53     (html: string | CheerioStatic, options?: IOptions): string;
                       ~~~~~~~~~~~~~
oe pushed a commit that referenced this issue Jul 9, 2021
@oe
Copy link
Owner

oe commented Jul 9, 2021

just fixed this issue, please update to the latest version v1.0.4 and try again

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

2 participants