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

https://dev.jspm.io/cheerio/index.js not working #5

Closed
alan-francis opened this issue Jun 22, 2022 · 6 comments
Closed

https://dev.jspm.io/cheerio/index.js not working #5

alan-francis opened this issue Jun 22, 2022 · 6 comments

Comments

@alan-francis
Copy link

Currently the url https://dev.jspm.io/cheerio/index.js is showing the error - "Internal error on package lookup.". Is there any alternate method to run this? Thanks in advance

@justjavac
Copy link
Owner

justjavac commented Jun 22, 2022

import * as cheerio from "https://esm.sh/cheerio";

const $ = cheerio.load('<h2 class="title">Hello world</h2>');

$("h2.title").text("Hello Deno!");
$("h2").addClass("deno");

console.log($.html());

@justjavac
Copy link
Owner

image

@alan-francis
Copy link
Author

@justjavac : Thank you

@alan-francis
Copy link
Author

@justjavac : We are running in a deno environment and are facing some issues with this like:

error: TS7053 [ERROR]: Element implicitly has an 'any' type because expression of type 'unique symbol' can't be used to index type 'Record<symbol, unknown>'. Property '["https://deno.land/std@0.142.0/node/internal/crypto/_keys.ts".kKeyType]' does not exist on type 'Record<symbol, unknown>'. obj != null && (obj as Record<symbol, unknown>)[kKeyType] !== undefined ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ at https://deno.land/std@0.142.0/node/internal/crypto/_keys.ts:8:20

Thanks in advance

@justjavac
Copy link
Owner

deno 1.23.0 (release, x86_64-apple-darwin)
v8 10.4.132.5
typescript 4.7.2

@justjavac
Copy link
Owner

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