Closed alx closed 7 years ago
I've made a temporary fix by copying node_modules/react-bounding-box/src/components/BoundingboxComponent.js
inside my other project components folder and then importing it with:
import BoundingboxComponent from './BoundingboxComponent';
From what I can get, this generator is made to generate full react app. Would you know how to make it more granular to expose only a single component?
Thanks and have a nice day,
Alex
Solved using a yeoman generator more adapted to my usecase: https://github.com/kadirahq/react-cdk
Hi,
Thanks a lot for this wonderful project, it's been a pleasure to create a new react component based on it: https://github.com/alx/react-bounding-box
I'm trying to import a component created with generator-react-webpack inside another project, and I've got the following issue when trying to
import BoundingBoxComponent from "react-bounding-box"
:It compiles fin if I add a
main
parameter inside react-bounding-boxpackage.json
:But then, I've got the following error in the web console:
Have I missed something?
Thanks a lot,
Alex