6

When i run yarn build i get this error :

 ERROR  run failed: error preparing engine: Could not find "___ROOT___#build" in root turbo.json
Turbo error: error preparing engine: Could not find "___ROOT___#build" in root turbo.json

here is my turbo.json :

{
  "$schema": "https://turbo.build/schema.json",
  "globalDependencies": ["**/.env.*local", "**/.env"],
  "globalEnv": ["NODE_ENV", "NEXT_PUBLIC_*"],
  "pipeline": {
    "build": {
      "dependsOn": ["^build"],
      "env": ["NEXT_PUBLIC_*"],
      "outputs": ["dist/**", ".next/**", "!.next/cache/**"]
    },
    "db:migrate:deploy": {},
    "db:push": {},
    "db:seed": {},
    "dev": {
      "cache": false,
      "persistent": true
    },
    "generate": {
      "dependsOn": ["^generate"]
    },
    "lint": {}
  }
}

Turbo : 1.10.6

NodeJs : 18

i dont know why i get this error, it seems that my build command has some issues but it's ok.

I wanted the yarn build command to build my monorepo

5
  • What version of turbo do you have? I got the same error with 1.10.6 and 1.10.3 Commented Jun 26, 2023 at 17:53
  • @GianfrancoP. in package.json file it says "turbo": "latest" so i guess it should be the latest version witch is : 1.10.6
    – Samyar
    Commented Jun 26, 2023 at 20:31
  • Yep, started getting the same here today Commented Jun 27, 2023 at 2:44
  • I saw this today on 1.10.6. Fixed by installing turbo 1.9.9.
    – thelem
    Commented Jun 27, 2023 at 12:36
  • i downgraded to 1.9.6 – the previous version I had installed – and it works as well Commented Jun 27, 2023 at 14:58

0

Browse other questions tagged or ask your own question.