VSCode中Azure Logic Apps设计器报错:Cannot read properties of undefined (reading 'credentials2')
解决VS Code中Azure Logic Apps设计器
Cannot read properties of undefined (reading 'credentials2')报错 问题根源推测
你之前删除过Standard计划的逻辑应用,当前仅使用Consumption计划,该报错大概率是Azure Logic Apps (Standard)扩展的缓存残留、本地配置冲突或订阅连接异常导致。
分步解决方案
清理扩展缓存并重装
- 关闭VS Code
- 删除对应系统下的扩展目录:
- Windows:
%USERPROFILE%\.vscode\extensions\ms-azuretools.vscode-azurelogicapps-* - macOS/Linux:
~/.vscode/extensions/ms-azuretools.vscode-azurelogicapps-*
- Windows:
- 重启VS Code,重新安装Azure Logic Apps (Standard)扩展,再登录Azure账号
重置Azure订阅连接
- 在VS Code左侧Azure面板,右键点击你的订阅选择Sign Out
- 完全退出VS Code后重新打开,重新登录Azure账号
- 尝试打开Consumption计划的逻辑应用设计器
清除本地Standard项目残留
如果之前在本地开发过Standard计划的逻辑应用,彻底删除包含host.json、local.settings.json的项目文件夹,避免扩展加载无效配置回退扩展版本
在VS Code扩展面板找到Azure Logic Apps (Standard),点击Install Another Version,选择上一个稳定版本安装后测试
报错原文:
Cannot read properties of undefined (reading 'credentials2')

内容的提问来源于stack exchange,提问作者Learner2008
相关产品推荐
相关产品推荐

