Salesforce LWC未捕获(承诺)TypeError:无法读取未定义的属性'Symbol(ViewModel)'

问题描述 投票:0回答:1

运行Salesforce临时组织应用程序时出现此错误;

aura_proddebug.js:274 Uncaught (in promise) TypeError: Cannot read property 'Symbol(ViewModel)' of undefined
at getInternalField (aura_proddebug.js:274)
at Object.update (aura_proddebug.js:1793)
at updateCustomElmDefaultHook (aura_proddebug.js:5627)
at Object.update (aura_proddebug.js:5779)
at patchVnode (aura_proddebug.js:5021)
at updateStaticChildren (aura_proddebug.js:5000)
at aura_proddebug.js:5542
at runWithBoundaryProtection (aura_proddebug.js:8255)
at updateChildrenHook (aura_proddebug.js:5541)
at Object.update (aura_proddebug.js:5751)

以前有没有人经历过?

javascript salesforce salesforce-lightning lwc
1个回答
0
投票

我实际上能够发现问题。

此错误以前是在我的组织中抛出的,当我没有.html文件或者我的拼写不正确时;在名称上包括区分大小写。

请参阅相关的here

© www.soinside.com 2019 - 2024. All rights reserved.