reaction-build is a command-line interface (CLI) tool designed as a build utility for React and React Native projects. It provides features like React Native compatibility and isomorphic bundling, aiming to produce code usable across various JavaScript environments. Originally associated with the broader "Reaction" ecosystem, potentially Reaction Commerce, its primary function is to abstract away complex build configurations, similar to tools like Create React App or Webpack. The package is currently at version `1.0.0-rc.104`, a release candidate, and has not been updated since late 2018. This indicates that the project is no longer actively maintained and would likely face compatibility issues with modern Node.js versions (it requires `>= 4.0.0`) or contemporary React development practices. It lacks current official usage documentation, requiring users to infer functionality from its source or general build tool patterns.
npm install reaction-buildVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to set up `reaction-build` as a script in `package.json` for typical build, start, and test commands.
No direct fix. Users should consider modern, actively maintained build tools like Create React App, Vite, or Webpack directly for current React/React Native projects.
Use Node.js version managers (e.g., `nvm`) to install and switch to an older, compatible Node.js version (e.g., Node 4.x or 6.x), if attempting to use this legacy tool. This is generally not recommended for new projects.
Expect to infer functionality from common build tool patterns or by examining the source code. Community support or issue resolution is highly unlikely due to the project's abandoned status.
Avoid using this package for production applications or any project requiring ongoing maintenance, security, or feature development. Migrate to actively supported build tools.
Ensure `reaction-build` is installed globally using `npm install -g reaction-build`. Verify your system's PATH includes the directory where npm installs global packages (`npm root -g`).
Increase Node.js's memory limit when running the command: `NODE_OPTIONS=--max_old_space_size=4096 reaction-build build` (adjust 4096MB as needed). Consider that this issue might also stem from inherent inefficiencies or outdated dependency versions in the abandoned tool.