Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@henrybuilt/react-lib

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@henrybuilt/react-lib

## Development

latest
Source
npmnpm
Version
1.0.22
Version published
Maintainers
3
Created
Source

hb-react-lib

Development

Getting Started

  • cd ~/repos
  • git clone https://github.com/henrybuilt/hb-react-lib.git
  • cd ~/repos/hb-react-lib
  • npm i
  • cd ~/repos/hb-react-lib
  • npm link
  • npm run watch, this will rebuild your ~/repos/hb-react-lib/dist as you make changes locally
  • rm -rf ./node_modules/react, we remove the /react dir from ./node_modules to prevent conflicts with the target repo we wish to npm link with hb-react-lib
  • cd ~/repos/target-repo, where "target-repo" is the repo in which you wish to use @henrybuilt/react-lib
  • npm link @henrybuilt/react-lib

Troubleshooting

  • If npm run build results in TypeError: Unknown file extension ".json", try the following:

    • See this stack-overflow for more information.

    • Run node --experimental-json-modules ./node_modules/.bin/rollup -c

  • If using npm link and you get the following error message in the repo where you're linking @henrybuilt/react-lib,

    Uncaught TypeError: Cannot read properties of null (reading 'useState')

    run the following commands in hb-react-lib directory:

    a. rm -rf ./node_modules/react b. rm -rf ./node_modules/react-dom

    This can occur if you recently ran npm i inside hb-react-lib.

Keywords

react

FAQs

Package last updated on 27 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts