but I’m getting an error saying “Could not find ‘ROOT#build’ in root turbo.json”. The versions of Turbo and Node.js I’m using are 1.10.6
and 18
, respectively. I don’t know why I’m getting this error, as the other commands seem to be working properly.
This error typically occurs when the Turbo module is unable to locate the #build
property in the turbo.json
file. To resolve this issue, follow these steps:
- Open the
turbo.json
file in your project directory. - Make sure that the
turbo.json
file contains a#build
property. If it doesn’t, add the following code to yourturbo.json
file:
{
"#build": {
"transform": "turbo-defaults",
"output": "dist"
}
}
- Save the
turbo.json
file and try running the command again.
This should resolve the error and allow your other Turbo commands to work properly.