[
https://issues.apache.org/jira/browse/ARROW-13884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dominik Moritz resolved ARROW-13884.
------------------------------------
Fix Version/s: 6.0.0
Resolution: Fixed
Issue resolved by pull request 11325
[https://github.com/apache/arrow/pull/11325]
> 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
> Labels: pull-request-available
> Fix For: 6.0.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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/[email protected]'. ========
> ======== 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)