Skip to content

Error: turbo_json_parse_error Found an unknown key tasks. -- only on PRODUCTION #7231

Locked Answered by brunofin
brunofin asked this question in Help
Discussion options

You must be logged in to vote

I just solved the problem by moving my dependency to turbo from devDependencies to dependencies:

{
  "name": "<redacted>-monorepo",
  "private": true,
  "scripts": {
    "build": "turbo build",
    "dev": "turbo dev",
    "lint": "turbo lint",
    "format": "prettier --write \"**/*.{ts,tsx,md}\""
  },
  "devDependencies": {
    "@repo/eslint-config": "*",
    "@repo/typescript-config": "*",
    "prettier": "^3.2.5"
  },
  "dependencies": {
    "turbo": "^2.0.3"
  },
  "engines": {
    "node": "20",
    "yarn": "1.22"
  },
  "packageManager": "yarn@1.22.19",
  "workspaces": [
    "apps/*",
    "packages/@<redacted1>/*",
    "packages/@<redacted2>/*"
  ]
}

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@brunofin
Comment options

@cSarcasme
Comment options

@mpereira
Comment options

Comment options

You must be logged in to vote
1 reply
@cSarcasme
Comment options

Answer selected by brunofin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants