@henrybuilt/react-lib v1.0.22
hb-react-lib
Development
Getting Started
cd ~/reposgit clone https://github.com/henrybuilt/hb-react-lib.gitcd ~/repos/hb-react-libnpm i
Local development with npm link
cd ~/repos/hb-react-libnpm linknpm run watch, this will rebuild your ~/repos/hb-react-lib/dist as you make changes locallyrm -rf ./node_modules/react, we remove the /react dir from ./node_modules to prevent conflicts with the target repo we wish to npm link withhb-react-libcd ~/repos/target-repo, where "target-repo" is the repo in which you wish to use@henrybuilt/react-libnpm link @henrybuilt/react-lib
Troubleshooting
If
npm run buildresults inTypeError: 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 linkand 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-libdirectory:a.
rm -rf ./node_modules/reactb.rm -rf ./node_modules/react-domThis can occur if you recently ran
npm iinsidehb-react-lib.
8 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago