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

Yarn error. #183

Open
arthurwolf opened this issue Sep 30, 2022 · 9 comments
Open

Yarn error. #183

arthurwolf opened this issue Sep 30, 2022 · 9 comments

Comments

@arthurwolf
Copy link

Following the instructions, when I get to this step, I have an error:

╭─arthur at aquarelle in ~/dev/btc/pancake-subgraph/subgraphs/prediction/v2 on v2✔ 22-09-30 - 23:56:40
╰─⠠⠵ yarn codegen                                                                                                                        on v2|✔
yarn run v1.22.19
$ graph codegen subgraph.yaml
The current version of graph-cli can't be used with mappings on apiVersion less than '0.0.5'
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@gwumex
Copy link

gwumex commented Feb 27, 2023

Have you been able to solve this issue?

@arthurwolf
Copy link
Author

never got an answer, gave up.

@arthurwolf
Copy link
Author

arthurwolf commented Mar 16, 2023

@gwumex @anyone the message above is phishing, right?

@ghost
Copy link

ghost commented Sep 26, 2023

@arthurwolf Did you use any other way to deploy ? Any fixes ?

@gwumex
Copy link

gwumex commented Sep 26, 2023

@liz-george what is your graph-cli version and assemblyscript version?

@ghost
Copy link

ghost commented Sep 26, 2023

graph-cli is the latest version - 0.58.0
I am not specifically installing assembly script. Should i be ?

@arthurwolf
Copy link
Author

arthurwolf commented Sep 27, 2023 via email

@flextra19
Copy link

pancake-squad:codegen: Error: The current version of graph-cli can't be used with mappings on
pancake-squad:codegen: apiVersion less than '0.0.5'

@Camillebzd
Copy link

Camillebzd commented May 15, 2024

I also had this issue but it is because you use the graph-cli you probably installed instead of the local graph version set up in the package.json (a really old one).

You just have to run yarn at the root of the folder before going into the subgraphs folders and you are good to go.

This is indeed not in the README but this step is mandatory if you want to use the same subgraphs because the new versions of the graph-cli don't support subgraphs using old versions.

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

No branches or pull requests

5 participants
@arthurwolf @gwumex @Camillebzd @flextra19 and others