Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#73 8 comments 2 reactions 1 assignee View on GitHub

@domoritz is already working on this.

Since Jan 5, 2024.

Assessment

This issue has not been assessed yet.

Description

Type: bug
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

Dominant language
TypeScript
Stars
112
Forks
23
Avg merge
17h 55m
Merged PRs (30d)
10

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/arrow-js

All issues in apache/arrow-js

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.