You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I verified that the issue exists in the latest Turborepo canary release.
Link to code that reproduces this issue
na
What package manager are you using / does the bug impact?
npm, Yarn v2/v3/v4 (node_modules linker only)
What operating system are you using?
Mac
Which canary version will you have in your reproduction?
1.13.4
Describe the Bug
I tried to migrate from 1.13.4 -> 2.x using: npx @turbo/codemod update --force (I also tried @canary version)
Need to install the following packages:
@turbo/[email protected]
Ok to proceed? (y) y
npm warn deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead
WARNING: Git directory is not clean. Forcibly continuing...
? Where is the root of the repo to migrate? .
Upgrading turbo from 1.13.4 to 2.0.14 (11 required codemods)
(1/11) Running add-package-manager
INFO "packageManager" already set in root "package.json"
(2/11) Running create-turbo-config
INFO Migrating "package.json" "turbo" key to "turbo.json" file...
UNCHANGED turbo.json
UNCHANGED package.json
Results:
┌──────────────┬─────────────┬───────────┬───────────┬────────┐
│ (index) │ action │ additions │ deletions │ error │
├──────────────┼─────────────┼───────────┼───────────┼────────┤
│ turbo.json │ 'unchanged' │ 0 │ 0 │ 'None' │
│ package.json │ 'unchanged' │ 0 │ 0 │ 'None' │
└──────────────┴─────────────┴───────────┴───────────┴────────┘
(3/11) Running migrate-env-var-dependencies
INFO Migrating environment variable dependencies from "globalDependencies" and "dependsOn" to "env" in "turbo.json"...
Unexpected error. Please report it as a bug:
TypeError: Cannot convert undefined or null to object
at Function.values (<anonymous>)
at Iu (/Users/shuther/.npm/_npx/24554e532d5698bb/node_modules/@turbo/codemod/dist/transforms/migrate-env-var-dependencies.js:39:7068)
at Object.zS [as transformer] (/Users/shuther/.npm/_npx/24554e532d5698bb/node_modules/@turbo/codemod/dist/transforms/migrate-env-var-dependencies.js:39:8582)
at Command.Zh (/Users/shuther/.npm/_npx/24554e532d5698bb/node_modules/@turbo/codemod/dist/cli.js:46:9079)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Command.parseAsync (/Users/shuther/.npm/_npx/24554e532d5698bb/node_modules/commander/lib/command.js:935:5)
Expected Behavior
upgrade turbo to latest version
To Reproduce
n/a
Additional context
migrate failed with (but it seems every steps to change turbo.json went well, the latest one is 11/11 - Running stabilize-ui)
"tasks" is available to turbo 2.x. Therefore, the error is occurring because "tasks" cannot be read. As a solution, change "tasks" to "pipeline," which can be read by version 1, and then run npx @turbo/codemod update, which will automatically update it.
Verify canary release
Link to code that reproduces this issue
na
What package manager are you using / does the bug impact?
npm, Yarn v2/v3/v4 (node_modules linker only)
What operating system are you using?
Mac
Which canary version will you have in your reproduction?
1.13.4
Describe the Bug
I tried to migrate from 1.13.4 -> 2.x using:
npx @turbo/codemod update --force
(I also tried @canary version)Expected Behavior
upgrade turbo to latest version
To Reproduce
n/a
Additional context
migrate failed with (but it seems every steps to change turbo.json went well, the latest one is 11/11 - Running stabilize-ui)
turbo.json after the 1st pass of migrate before update again:
The text was updated successfully, but these errors were encountered: