-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing in a new react-native project: missing yarn.lock #23
Comments
Hello, thanks for your issue. |
🎉 This issue has been resolved in version 1.0.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Hello @loredanacirstea . Please see the latest commit which should resolve your issue. |
with the latest version I get
at I assume it is because a new build is forced, but there are bundling errors, that I mentioned in my original issue. |
I have the exact same problem as @loredanacirstea currently. Copying the pb files back into |
The following commands work for me. Can you give the exact commands which cause a problem?
|
@jefft0 I can confirm that those commands are successful. The issue is at runtime. Add in
Then |
tldr;
Add the
yarn.lock
file to the npm published package.Otherwise, if you use this package in a new RN app, you will need to manually add it. But if you
cd ./node_modules/@berty/weshnet-expo && yarn
you may encounter some bundling issues, so I just copiedyarn.lock
from the@berty/weshnet-expo
repo and it worked.npx expo install @berty/weshnet-expo
and then rebuilt ios/android:I see that
node_modules/@berty/weshnet-expo
does not containyarn.lock
, which seems to be required by the build process innode_modules/@berty/weshnet-expo/Makefile
.So I did a
yarn
innode_modules/@berty/weshnet-expo
, I got the following errors:If I ignore the above errors,
npx expo prebuild --clean
executes without errors. But running on the ios simulator gives a runtime error, because the build process did not finalize and thepb.js
files were not included in the build.So I reinstalled
weshnet-expo
, copied theyarn.lock
from this repo, rebuilt and the ios app seems to work correctly.The text was updated successfully, but these errors were encountered: