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

[turborepo] unable to parse yaml: mapping values are not allowed in this context at line 24 column 15 #5902

Closed
paulwongx opened this issue Sep 7, 2023 · 3 comments

Comments

@paulwongx
Copy link

What version of Turborepo are you using?

1.10.12

What package manager are you using / does the bug impact?

Yarn v1

What operating system are you using?

Mac

Describe the Bug

When running turbo build, I keep getting this error. It's not clear to me which yaml file it's referrring to... can someone help me clarify?

Running "turbo run build"
--
00:39:14.085 | WARNING  Issues occurred when constructing package graph. Turbo will function, but some features may not be available:  1 error occurred:
00:39:14.085 | * unable to parse yaml: mapping values are not allowed in this context at line 24 column 15

If referring to the yarn.lock file, the content at line 24 is below, but it's unclear how I'm supposed to resolve this.

# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1

// ....

"@ampproject/remapping@^2.2.0":
  version "2.2.1"
  resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.1.tgz#99e8e11851128...."
  integrity sha512-lFM.....
  dependencies: // <<<<<<<<<<<<<<<<<<<<<<<< This is line 24
    "@jridgewell/gen-mapping" "^0.3.0"
    "@jridgewell/trace-mapping" "^0.3.9"

I'm raising this as an issue due to this similar issue.

I create my project using npx create-turbo@latest

Expected Behavior

  1. Should not have malformed yaml
  2. Should clarify which yaml file has the error

To Reproduce

Running "turbo run build"
--
00:39:14.085 | WARNING  Issues occurred when constructing package graph. Turbo will function, but some features may not be available:  1 error occurred:
00:39:14.085 | * unable to parse yaml: mapping values are not allowed in this context at line 24 column 15

Reproduction Repo

No response

@paulwongx paulwongx added kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage owned-by: turborepo labels Sep 7, 2023
@chris-olszewski
Copy link
Contributor

chris-olszewski commented Sep 8, 2023

Can you provide the packageManager set in your package.json? If not, can you set it to the version of yarn that you expect and see if that changes anything? Also what's the output when you run yarn --version?

@chris-olszewski chris-olszewski added needs: author input and removed needs: triage New issues get this label. Remove it after triage labels Sep 8, 2023
@chris-olszewski
Copy link
Contributor

If I had to guess, I believe that this would be fixed by #5986

@chris-olszewski
Copy link
Contributor

If anyone encounters this please try upgrading to turbo@1.10.15-canary.0 and reopen if the problem persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants