You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "mirkoiv (via GitHub)" <gi...@apache.org> on 2025/04/10 09:47:52 UTC

[I] [JS] Apache Arrow does not compile with Typescript when types are checked [arrow]

mirkoiv opened a new issue, #46088:
URL: https://github.com/apache/arrow/issues/46088

   ### Describe the bug, including details regarding any error messages, version, and platform.
   
   Elasticsearch: 8.17.1
   Apache Arrow: 18.0.0
   Typescript: 5.7.3
   Node: 20.15.0
   
   
   node_modules/apache-arrow/io/interfaces.d.ts:59:51 - error TS2304: Cannot find name 'StreamPipeOptions'.
   
   59     pipeTo(writable: WritableStream<T>, options?: StreamPipeOptions): Promise<void>;
                                                        ~~~~~~~~~~~~~~~~~
   
   node_modules/apache-arrow/io/interfaces.d.ts:63:18 - error TS2304: Cannot find name 'StreamPipeOptions'.
   
   63     }, options?: StreamPipeOptions): ReadableStream<any>;
                       ~~~~~~~~~~~~~~~~~
   
   node_modules/apache-arrow/ipc/writer.d.ts:34:61 - error TS2552: Cannot find name 'QueuingStrategy'. Did you mean 'CountQueuingStrategy'?
   
   34     static throughDOM<T extends TypeMap>(writableStrategy?: QueuingStrategy<RecordBatch<T>> & {
                                                                  ~~~~~~~~~~~~~~~
   
     node_modules/@types/node/stream/web.d.ts:455:13
     node_modules/@types/node/stream/web.d.ts:455:13
       455         var CountQueuingStrategy: typeof globalThis extends { onmessage: any; CountQueuingStrategy: infer T } ? T
                       ~~~~~~~~~~~~~~~~~~~~
       'CountQueuingStrategy' is declared here.
   
   node_modules/apache-arrow/util/buffer.d.ts:8:398 - error TS2304: Cannot find name 'ReadableStreamReadResult'.
   
   8 export type ArrayBufferViewInput = ArrayBufferView | ArrayBufferLike | ArrayBufferView | Iterable<number> | Iterable<bigint> | ArrayLike<number> | ArrayLike<bigint> | ByteBuffer | string | null | undefined | IteratorResult<ArrayBufferView | ArrayBufferLike | ArrayBufferView | Iterable<number> | Iterable<bigint> | ArrayLike<number> | ArrayLike<bigint> | ByteBuffer | string | null | undefined> | ReadableStreamReadResult<ArrayBufferView | ArrayBufferLike | ArrayBufferView | Iterable<number> | Iterable<bigint> | ArrayLike<number> | ArrayLike<bigint> | ByteBuffer | string | null | undefined>;
                                                                                                                                                                                                                                                                                                                                                                                                                  ~~~~~~~~~~~~~~~~~~~~~~~~
   
   
   Found 4 errors in 3 files.
   
   Errors  Files
        2  node_modules/apache-arrow/io/interfaces.d.ts:59
        1  node_modules/apache-arrow/ipc/writer.d.ts:34
        1  node_modules/apache-arrow/util/buffer.d.ts:8
   
   [apache-arrow-compile-error.zip](https://github.com/user-attachments/files/19682316/apache-arrow-compile-error.zip)
   
   ### Component(s)
   
   JavaScript


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [JS] Apache Arrow does not compile with Typescript when types are checked [arrow]

Posted by "joshbode (via GitHub)" <gi...@apache.org>.
joshbode commented on issue #46088:
URL: https://github.com/apache/arrow/issues/46088#issuecomment-2874074589

   For me, I needed to include `WebWorker` in `compilerOptions.lib` in `tsconfig.json`:
   
   ```json
   {
     "compilerOptions": {
       "lib": ["ESNext", "WebWorker"],
       ...
     },
     ...
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org