You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "jcludwig (via GitHub)" <gi...@apache.org> on 2024/07/10 21:10:16 UTC

Re: [I] [JS] Compatibility Issue with Apache Arrow Library in Angular Application [arrow]

jcludwig commented on issue #39970:
URL: https://github.com/apache/arrow/issues/39970#issuecomment-2221478840

   This is not an issue of bundling, the problem is with TypeScript compilation. I believe the root cause is probably the use of NodeJS types in `compat.ts` (https://github.com/apache/arrow/blob/2ae192b4aca6017a141dc52f78b5dec4ad2f2874/js/src/util/compat.ts#L21). I believe this file must be getting imported through some path from the `Arrow.dom.ts` module. In my view the correct fix is for the apache-arrow project to make sure that the Arrow.dom module does not have any imports to NodeJS code, including types. Importing any module that imports these types will pollute the TypeScript type context since NodeJS declares ambient types that conflict with browser types.


-- 
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