Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@henrybuilt/react-lib

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@henrybuilt/react-lib

## Development

  • 1.0.21
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

hb-react-lib

Development

Getting Started

  1. cd ~/repos
  2. git clone https://github.com/henrybuilt/hb-react-lib.git
  3. cd ~/repos/hb-react-lib
  4. npm i
  1. cd ~/repos/hb-react-lib
  2. npm link
  3. npm run watch, this will rebuild your ~/repos/hb-react-lib/dist as you make changes locally
  4. 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
  5. cd ~/repos/target-repo, where "target-repo" is the repo in which you wish to use @henrybuilt/react-lib
  6. npm link @henrybuilt/react-lib

Troubleshooting

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

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

FAQs

Package last updated on 31 Jan 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc