You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Dominik Moritz (Jira)" <ji...@apache.org> on 2021/10/05 15:26:00 UTC
[jira] [Assigned] (ARROW-13884) Arrow 5.0.0 cannot compile with
Typescript 4.2.2
[ https://issues.apache.org/jira/browse/ARROW-13884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dominik Moritz reassigned ARROW-13884:
--------------------------------------
Assignee: Dominik Moritz
> Arrow 5.0.0 cannot compile with Typescript 4.2.2
> ------------------------------------------------
>
> Key: ARROW-13884
> URL: https://issues.apache.org/jira/browse/ARROW-13884
> Project: Apache Arrow
> Issue Type: Bug
> Components: JavaScript
> Affects Versions: 5.0.0
> Reporter: Zofia Góralewska
> Assignee: Dominik Moritz
> Priority: Major
>
> After trying to compile a typescript project, that contains `import \{ Table } from 'apache-arrow';` I get Typescript errors.
>
> Steps to reproduce:
> # installed ` "typescript": "4.2.2"` and ` "apache-arrow": "^5.0.0",`
> # run `tsc --traceResolution`
>
> Expected result:
> Compiles without errors.
>
> Actual Result:
> ```
> ======== Module name 'apache-arrow' was successfully resolved to '/.../apache/node_modules/apache-arrow/Arrow.node.d.ts' with Package ID 'apache-arrow/Arrow.node.d.ts@5.0.0'. ========
> ======== Resolving module './Arrow.dom' from '/.../apache/node_modules/apache-arrow/Arrow.node.d.ts'. ========
> Explicitly specified module resolution kind: 'NodeJs'.
> Loading module as file / folder, candidate module location '/.../apache/node_modules/apache-arrow/Arrow.dom', target file type 'TypeScript'.
> File '/.../apache/node_modules/apache-arrow/Arrow.dom.ts' exist - use it as a name resolution result.
> ```
> Since Typescript files live alongside Javascript files, NodeJS module resolution resolves `Arrow.dom` in the main file to `Arrow.dom.ts`, and all of the other .ts files imported there are being compiled.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)