You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Zofia Góralewska (Jira)" <ji...@apache.org> on 2021/09/03 09:00:00 UTC
[jira] [Created] (ARROW-13884) Arrow 5.0.0 cannot compile with
Typescript 4.2.2
Zofia Góralewska created ARROW-13884:
----------------------------------------
Summary: 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
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)