Skip to content

[JS] The package.json file incorrectly specifies sideEffects: false #73

@nrabinowitz

Description

@nrabinowitz

Describe the bug, including details regarding any error messages, version, and platform.

Problem

When building a Node application with Webpack, calls to RecordBatchStreamWriter.toNodeStream fail with the error:

Error: "toNodeStream" not available in this environment

Cause

The apache-arrow package.json file specifies "sideEffects": false, but the Node overrides required for streaming Arrow files are applied as a side effect. I believe this is true for the DOM overrides as well.

Suggested Fix

I haven't tested this, but I think that wrapping the overrides in these two files in an IIFE as is done here will fix this issue in the Webpack build.

Component(s)

JavaScript

Metadata

Metadata

Assignees

Labels

Type: bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions