When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer.
More information
Hello @ANeacșu964237 (Community Member) ,
Thank you for reaching out to the Community.
I would suggest reviewing the Supported Languages and Tools for Agent-Base Scans . I have provided the link below.
https://help.veracode.com/r/c_sc_supported_lang
Best regards,
Steven
Veracode Support Engineer
I have reviewed the Supported Languages. Yarn version is not mentioned.
Did you read my question?
Hi @ANeacșu964237 (Community Member) ,
I apologize for the miss-communication
I was talking to a team member and they suggest to regenerate the yarn.lock file...
From the error it seems like it's corrupted or something. Maybe the upgrade threw the indentation off.
Thank you,
Steven
The yarn.lock file is not corrupted. The project runs and builds correctly.
Yarn 3 migration guide even has a step to migrate the lock file from the old format to the new:
https://yarnpkg.com/getting-started/migration#step-by-step
It adds a new level of indentation that perhaps SourceClear doesn't interpret correctly, expecting the lock file to only include 2 levels of indentation.
Example yarn.lock for Yarn 1:
```
"some-dependency@^1.0.0":
version "1.0.0"
resolved "..."
integrity sha512-/...
dependencies:
"sub-dependency" "^1.0.0"
```
Example yarn.lock for Yarn 3:
```
"some-dependency@npm:^1.0.0":
version: 1.0.0
resolution: "some-dependency@npm:1.0.0"
dependencies:
"sub-dependency": ^1.0.0
peerDependencies:
react: ^16.8.0 || ^17.0.0
peerDependenciesMeta:
react:
optional: true <-------- 6 spaces indentation
checksum: ...
languageName: node
linkType: hard
```
SourceClear CI step output:
```
Veracode SCA agent scanning engine ready
Running the Yarn scanner
Processing results...
Processing results complete
Unexpected level of indentation: 6. Line: ' optional: true'.
Exited with code exit status 1
```