We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
npx dts2hx cheerio > Converting module cheerio > Error: [TypeScript 3.7] Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i @types/node` and then add `node` to the types field in your tsconfig. (C:/projects/youtubeipfs/node_modules/cheerio/types/index.d.ts:278:22) > Error: [TypeScript 3.7] String literal expected. (C:/projects/youtubeipfs/node_modules/htmlparser2/lib/index.d.ts:36:10) > Error: [TypeScript 3.7] Cannot find name 'DomUtils'. (C:/projects/youtubeipfs/node_modules/htmlparser2/lib/index.d.ts:36:13) > Error: [TypeScript 3.7] Cannot find name 'from'. (C:/projects/youtubeipfs/node_modules/htmlparser2/lib/index.d.ts:36:22) > Error: [TypeScript 3.7] 'from' expected. (C:/projects/youtubeipfs/node_modules/htmlparser2/lib/index.d.ts:36:10) > Error: [TypeScript 3.7] ';' expected. (C:/projects/youtubeipfs/node_modules/htmlparser2/lib/index.d.ts:36:13) > Error: [TypeScript 3.7] ';' expected. (C:/projects/youtubeipfs/node_modules/htmlparser2/lib/index.d.ts:36:22) > Error: [TypeScript 3.7] ';' expected. (C:/projects/youtubeipfs/node_modules/htmlparser2/lib/index.d.ts:36:27) > Saved externs for cheerio into .haxelib/cheerio/1,0,0-rc,6/ > Converting module domhandler > Saved externs for domhandler into .haxelib/domhandler/4,2,0/ > Converting module htmlparser2 > Error: [TypeScript 3.7] String literal expected. (C:/projects/youtubeipfs/node_modules/htmlparser2/lib/index.d.ts:36:10) > Error: [TypeScript 3.7] Cannot find name 'DomUtils'. (C:/projects/youtubeipfs/node_modules/htmlparser2/lib/index.d.ts:36:13) > Error: [TypeScript 3.7] Cannot find name 'from'. (C:/projects/youtubeipfs/node_modules/htmlparser2/lib/index.d.ts:36:22) > Error: [TypeScript 3.7] 'from' expected. (C:/projects/youtubeipfs/node_modules/htmlparser2/lib/index.d.ts:36:10) > Error: [TypeScript 3.7] ';' expected. (C:/projects/youtubeipfs/node_modules/htmlparser2/lib/index.d.ts:36:13) > Error: [TypeScript 3.7] ';' expected. (C:/projects/youtubeipfs/node_modules/htmlparser2/lib/index.d.ts:36:22) > Error: [TypeScript 3.7] ';' expected. (C:/projects/youtubeipfs/node_modules/htmlparser2/lib/index.d.ts:36:27) > Saved externs for htmlparser2 into .haxelib/htmlparser2/6,1,0/ > Converting module domelementtype > Saved externs for domelementtype into .haxelib/domelementtype/2,2,0/ `` these is no function ` load()` ```haxe @:jsRequire("cheerio") extern class Cheerio { static var value(get, never) : cheerio.CheerioAPI; static inline function get_value():cheerio.CheerioAPI return cast Cheerio; //where is load function? } `var $ = cheerio.load(iconv.decode(body, PAGE_ENCODING));` ``
The text was updated successfully, but these errors were encountered:
load() is inside CheerioAPI: use it like Cheerio.value.load(...)
load()
CheerioAPI
Cheerio.value.load(...)
I agree this isn't intuitive, this will improve when module-level-fields for externs are fully complete (maybe haxe 4.3)
Sorry, something went wrong.
I've opened an issue to track that progress #89 so I will close this one
No branches or pull requests
The text was updated successfully, but these errors were encountered: