dependency packages not installed automatically
Closed this issue · 3 comments
Describe the bug
When install dooboo-ui
and use some components, error occured like below.
error: Error: Unable to resolve module react-native-vector-icons from /<some_path>/node_modules/dooboo-ui/Icon/index.js: react-native-vector-icons could not be found within the project or in these directories:
node_modules/dooboo-ui/node_modules
node_modules
I found missing package list
- @emotion/react
- @emotion/native
- react-native-vector-icons
To Reproduce
- create example directory by run
npx react-native init <project_name> --template react-native-template-typescript
- install
dooboo-ui
by runningyarn add doooboo-ui
- import and use some component from
dooboo-ui
like Get Started - run app by
react-native start
andreact-native run-android
- unable to resolve module error occurred
Expected behavior
User don't need to install dependent packages, just installed automatically.
and don't occur "unable to resolve module error"
Screenshots
If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
- Device: Google Pixel 41
- OS: Android 11
dooboo-ui
version : 0.1.23- npm version : 7.20.3
- yarn version : 1.22.11
Additional context
Add any other context about the problem here.
Thanks for trying out~! It looks like we can add to peerDependency in package.json
. Would you like to give a PR
for this?
In addition, we need postinstallation guide for iOS
.
https://github.com/dooboolab/dooboo-native-ts#ios-setting-guide.
@luke-hanwook
I think it because #79 is already merged to master, but it hasn't released and deployed at NPM.
Please wait until release!