-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
cjs conflict with https://deno.land/[email protected]/hash/mod.ts #6995
Comments
Duplicate of #6176 |
@kitsonk Hi, I don't think it's been related. This cjs file loading normally working fine, but this issue happens only with this hash module. |
@aaronwlee It happens if any sibling of this cjs module is a TypeScript file, not just std/hash right? In that case it is a duplicate of #6176. |
Sorry to confuse y'all. Ok, I think it's a more complex bug... I thought only the combination of the hash module and cjs was a problem. import { emptyDir, emptyDirSync } from "https://deno.land/std/fs/mod.ts";
// or any other modules except hash
import babelCore from "https://jspm.dev/@babel/core"; // this returns cjs. Simply run this code is working perfectly fine. An unknown bug occurs in the sample code below. This is a sample code that added a hash module. import { emptyDir, emptyDirSync } from "https://deno.land/std/fs/mod.ts";
export { createHash } from "https://deno.land/[email protected]/hash/mod.ts";
import babelCore from "https://jspm.dev/@babel/core"; Run this code returns 10651 type errors... |
temp solution. // tsconfig.json
{
"compilerOptions": {
"allowJs": false,
"lib": ["ESNext", "DOM", "dom.iterable", "deno.unstable", "deno.ns"],
}
} |
I have the same Problem with the combo but if you use a hash module directly maybe its a problem with the wasm module the tsconfig.json does't help |
@MichaelBauerLHIND what version of It appears that
That has nothing to do with this issue. I don't even need to import The API also uses |
@aaronwlee I think the underlying issue is resolved in 1.5.1 (it was/is a duplicate of #6176), but there seems to be another issue related specifically the |
No objections to it being resolved. If you do still encounter this, please re-open. |
This is a strange bug.
When loading both
https://deno.land/[email protected]/hash/mod.ts
and some cjs files, deno checks the type of cjs.Windows 10 v2004 - X
WSL (Ubuntu bionic) - X
macOS Catalina - X
The text was updated successfully, but these errors were encountered: