We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 236e001 commit 4375f7bCopy full SHA for 4375f7b
packages/next-codemod/bin/upgrade.ts
@@ -410,7 +410,7 @@ function isUsingAppDir(projectPath: string): boolean {
410
*/
411
async function suggestTurbopack(packageJson: any): Promise<void> {
412
const devScript: string = packageJson.scripts['dev']
413
- if (devScript.includes('--turbo')) return
+ if (devScript && devScript.includes('--turbo')) return
414
415
const responseTurbopack = await prompts(
416
{
0 commit comments