-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Importing JavaScript modules throws type errors #1239
Comments
I think there are actually 2 separate issues related to this.
|
Can you post the related errors? TypeScript does the transpiling of modules and Check JS is on by default. Until we have #51, and CheckJS could be turned off this would likely require this in the module: // @ts-nocheck |
Warning: Large dump of text~/.deno/deps/https/unpkg.com/[email protected]/dist/dyo.esm.js:1:281 - error TS2339: Property 'iterator' does not exist on type 'SymbolConstructor | (() => number)'. Property 'iterator' does not exist on type '() => number'. |
Yeah, it is exactly that, in that Check JS is stopping this. |
I can't reproduce this issue on v0.2.11. @kitsonk do you think we can close this? |
Well we just disabled CheckJS, so the underlying issue isn't resolved. But I guess it will be a while before we add that back. |
With Deno v0.13.0 I get following output:
I think we can close this issue now. CC @ry |
Given the following script:
Produces the following error:
When altered to use the resolved url:
Typescript throws type related errors for this non-TypeScript import.
The text was updated successfully, but these errors were encountered: