Skip to content
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

Issue running lerna bootstrap #2699

Closed
adefelic opened this issue Jan 16, 2025 · 2 comments · Fixed by #2703
Closed

Issue running lerna bootstrap #2699

adefelic opened this issue Jan 16, 2025 · 2 comments · Fixed by #2703

Comments

@adefelic
Copy link

I've followed the desktop build instructions laid out in the README, and in the npm run lerna bootstrap step, bootstrap fails while building the backend package with the error:

lerna ERR! lifecycle "prepare" errored in "@quiet/backend", exiting 1

I ran npm run prepare in packages/backend to try and get a more useful error message, and webpack completes but reports that it can't find some modules. For example:

ERROR in ./src/nest/auth/services/crypto/crypto.service.ts 4:0-46
Module not found: Error: Can't resolve '@localfirst/auth' in '/Users/adamdefelice/src/quiet/packages/backend/src/nest/auth/services/crypto'
 @ ./src/nest/auth/sigchain.ts 7:0-65 56:23-41
 @ ./src/nest/auth/sigchain.service.ts 12:0-38 75:25-40 81:25-38
 @ ./src/nest/connections-manager/connections-manager.service.ts 48:0-59 802:8-23
 @ ./src/backendManager.ts 7:0-99 50:39-64 94:43-68 98:43-68

Not sure if this is a red herring.

I replicated this issue cloning the repo from scratch on a friend's machine. Both builds were on mac os.
Any help is appreciated :)

@adrastaea
Copy link
Collaborator

Hi @adefelic! Sorry about the outdated build instructions. We've been experimenting with some 3rd-party forks that need to be built first, and forgot to update the build instructions.

Use npm run bootstrap instead of npm run lerna bootrap That will run the pnpm build of the 3rd-party forks we're working with before running the lerna bootstrap to build our monorepo. You may need to install pnpm globally with npm install -g [email protected] first.

@adefelic
Copy link
Author

Ah, I hadn't pulled submodules when initially forking development either. Doing that, installing pnpm globally and running npm run bootstrap fixed it. Thanks for the help! I'd be happy to PR the README with updates if you think that it would be useful. Before this I had also found that I needed to install setuptools as is done in the CI setup.

@adrastaea adrastaea linked a pull request Jan 17, 2025 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants