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

"message": "Namespace '\"d:/Project/nfes-helper/node_modules/cheerio/dist/commonjs/index\"' has no exported member 'Element'.", #4067

Open
atyyymy opened this issue Sep 3, 2024 · 2 comments

Comments

@atyyymy
Copy link

atyyymy commented Sep 3, 2024

import * as cheerio from 'cheerio';
...ele:cheerio.Element..)

@atyyymy atyyymy changed the title [{ "resource": "/d:/Project/nfes-helper/src/utils/webview.ts", "owner": "typescript", "code": "2694", "severity": 8, "message": "Namespace '\"d:/Project/nfes-helper/node_modules/cheerio/dist/commonjs/index\"' has no exported member 'Element'.", "message": "Namespace '\"d:/Project/nfes-helper/node_modules/cheerio/dist/commonjs/index\"' has no exported member 'Element'.", Sep 3, 2024
@atyyymy
Copy link
Author

atyyymy commented Sep 3, 2024

已解决
cheerio需要固定版本

@Adil-Iqbal
Copy link

Adil-Iqbal commented Oct 16, 2024

I'm seeing this too.

error TS2694: Namespace '"/Users/aiqbal/browser_tests/node_modules/cheerio/dist/commonjs/index"' has no exported member 'Element'.
yarn tsc -v
yarn run v1.22.21
$ /Users/aiqbal/browser_tests/node_modules/.bin/tsc -v
Version 5.4.5
✨  Done in 0.40s.

from package.json

"cheerio": "^1.0.0-rc.12"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants