You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i use yarn install everything works perfectly in my package, so after development when I tried to install the package via github , problems started to arise.
ex -
src/Components/NextBtn/index.tsx:33:6 - error TS2786: 'View' cannot be used as a JSX component.
Its instance type 'View' is not a valid JSX element.
33 <View style={[styles.main, { right: position, bottom: position } ]}>
So basically every instance where I have used react native components give out errors like this, so inside the package dev dir, when I removed all the node_modules and tried to reinstall it via npm it gives out the same set of errors when it tries to build the package, and again with yarn it has no problem in building it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When i use
yarn install
everything works perfectly in my package, so after development when I tried to install the package via github , problems started to arise.ex -
So basically every instance where I have used react native components give out errors like this, so inside the package dev dir, when I removed all the node_modules and tried to reinstall it via npm it gives out the same set of errors when it tries to build the package, and again with yarn it has no problem in building it.
here is my
package.json
fileI just used the
npx create-react-native-library@latest awesome-library
and build around it.If you have any more inquiries, I am happy to provide...
Beta Was this translation helpful? Give feedback.
All reactions