Skip to content

Commit ce9694f

Browse files
committed
fix(info): check if BuildModules is defined
1 parent 3eaca44 commit ce9694f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nuxi/src/commands/info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export default defineCommand({
126126
const copied = !isMinimal && await new Promise(resolve => copyToClipboard(infoStr, err => resolve(!err)))
127127

128128
const isNuxt3 = !isLegacy
129-
const isBridge = !isNuxt3 && infoObj.BuildModules.includes('bridge')
129+
const isBridge = !isNuxt3 && infoObj.BuildModules?.includes('bridge')
130130

131131
const repo = isBridge ? 'nuxt/bridge' : 'nuxt/nuxt'
132132

0 commit comments

Comments
 (0)