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
1.10.6
and1.10.3
package.json
file it says"turbo": "latest"
so i guess it should be the latest version witch is :1.10.6
1.10.6
. Fixed by installing turbo1.9.9
.