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
The lib/esm/static.d.ts file in the (currently) latest version (1.0.0-rc.12) defines:
importtype{CheerioAPI,Cheerio}from'.';
This causes ESM projects that use cheerio to fail to build as the import should be ... from './index.js
Error:
../../common/temp/node_modules/.pnpm/cheerio@1.0.0-rc.12/node_modules/cheerio/lib/esm/static.d.ts:2:42 - error TS2307: Cannot find module '.' or its corresponding type declarations.
2 import type { CheerioAPI, Cheerio } from '.';
~~~
Found 1 error in ../../common/temp/node_modules/.pnpm/cheerio@1.0.0-rc.12/node_modules/cheerio/lib/esm/static.d.ts:2
The text was updated successfully, but these errors were encountered:
This is linked with issue #2774. This is fixed in the source files but has not been released yet. I can confirm setting skipLibCheck to true in tsconfig.json resolves this issue for now.
The
lib/esm/static.d.ts
file in the (currently) latest version (1.0.0-rc.12
) defines:This causes ESM projects that use cheerio to fail to build as the import should be
... from './index.js
Error:
The text was updated successfully, but these errors were encountered: