UnknownError
UnknownError
DDeno
Created by UnknownError on 10/1/2024 in #help
Cannot find CanvasRenderingContext2D
Thanks for your help!
18 replies
DDeno
Created by UnknownError on 10/1/2024 in #help
Cannot find CanvasRenderingContext2D
Thanks. Moved the file to deno.json. All those errors are fixed.
18 replies
DDeno
Created by UnknownError on 10/1/2024 in #help
Cannot find CanvasRenderingContext2D
18 replies
DDeno
Created by UnknownError on 10/1/2024 in #help
Cannot find CanvasRenderingContext2D
deno 1.46.3 (stable, release, x86_64-unknown-linux-gnu)
v8 12.9.202.5-rusty
typescript 5.5.2
deno 1.46.3 (stable, release, x86_64-unknown-linux-gnu)
v8 12.9.202.5-rusty
typescript 5.5.2
18 replies
DDeno
Created by UnknownError on 10/1/2024 in #help
Cannot find CanvasRenderingContext2D
Nor does deno complain about the use of window and other dom commands.
18 replies
DDeno
Created by UnknownError on 10/1/2024 in #help
Cannot find CanvasRenderingContext2D
Is there a specific lib I need to specify to enable canvas based features? I am using es2022 Set, and deno does not complain about that.
18 replies
DDeno
Created by UnknownError on 10/1/2024 in #help
Cannot find CanvasRenderingContext2D
I changed the tsconfig to:
{
"compilerOptions": {
"target": "esnext",
"lib": [
"dom",
"esnext"
],
"module": "esnext",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
}
}
{
"compilerOptions": {
"target": "esnext",
"lib": [
"dom",
"esnext"
],
"module": "esnext",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
}
}
Unfortunately, the same issue. I believe this is the lib names you were referring to.
18 replies