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

Error when running yarn build:subgraph #876

Open
vplasencia opened this issue Oct 16, 2024 · 6 comments · May be fixed by #884
Open

Error when running yarn build:subgraph #876

vplasencia opened this issue Oct 16, 2024 · 6 comments · May be fixed by #884
Assignees
Labels
bug 🐛 Something isn't working devops 🔧 Operations management and dev tools good first issue Good for newcomers

Comments

@vplasencia
Copy link
Member

Description

Every time I switch branch in the project and run yarn and then yarn build:subgraph, I get this error:

node:internal/process/esm_loader:46
      internalBinding('errors').triggerUncaughtException(
                                ^

Error: Cannot find package '<project-path>/semaphore/apps/subgraph/node_modules/@semaphore-protocol/utils/package.json' imported from <project-path>/semaphore/apps/subgraph/scripts/generate-subgraph.js
Did you mean to import <project-path>/semaphore/packages/utils/dist/index.cjs?

If I remove the node_modules folder inside the subgraph project, and run yarn build:subgraph again, it works well.

@vplasencia vplasencia added bug 🐛 Something isn't working devops 🔧 Operations management and dev tools labels Oct 16, 2024
@0xshikhar
Copy link
Contributor

Hey @vplasencia , would like to work on this task. Any additional context would be appreciated. Thanks!

@vplasencia
Copy link
Member Author

Hey @0xshikhar do you want me to assign you this issue?

If I follow these steps I see the error:

1- Clone the semaphore repo

2- Run yarn

3- Run yarn build

4- Run yarn build (or yarn build:subgraph)

Then I see the error.

Let me know if you see it too?

If I remove the node_modules folder inside the subgraph app and I run yarn build (or yarn build:subgraph) again, it works fine.

@cedoor cedoor added the good first issue Good for newcomers label Oct 24, 2024
@cedoor cedoor moved this to ♻️ Grooming in Semaphore Board Oct 24, 2024
@0xshikhar
Copy link
Contributor

Hi @vplasencia, yes I can regenerate this issue by following the above process. I can work on this. Thanks!

@vplasencia
Copy link
Member Author

Hey @0xshikhar! I just assigned the issue to you. Feel free to ask any questions you may have.

@0xshikhar 0xshikhar linked a pull request Oct 24, 2024 that will close this issue
7 tasks
@semaphore-protocol semaphore-protocol deleted a comment Oct 26, 2024
@0xshikhar
Copy link
Contributor

Hey @vplasencia , let me know your views about the pull request

@vplasencia
Copy link
Member Author

Hey @0xshikhar! Thank you very much for creating the PR. I will review it asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working devops 🔧 Operations management and dev tools good first issue Good for newcomers
Projects
Status: ♻️ Grooming
Development

Successfully merging a pull request may close this issue.

3 participants