diff --git a/packages/amplify-cli/src/context-manager.ts b/packages/amplify-cli/src/context-manager.ts index 3721ba99e38..cd81af5b829 100644 --- a/packages/amplify-cli/src/context-manager.ts +++ b/packages/amplify-cli/src/context-manager.ts @@ -35,7 +35,7 @@ const getProjectSettings = (): ProjectSettings => { const projectConfig = stateManager.getProjectConfig(); const frontend = projectConfig.frontend; projectSettings.frontend = frontend; - projectSettings.framework = projectConfig?.[frontend].framework; + projectSettings.framework = projectConfig?.[frontend]?.framework; } if (stateManager.localEnvInfoExists()) {