Javascript Salesforce LWC Uncaught(承诺中)TypeError:无法读取未定义的属性“Symbol(ViewModel)”

Javascript Salesforce LWC Uncaught(承诺中)TypeError:无法读取未定义的属性“Symbol(ViewModel)”,javascript,salesforce,salesforce-lightning,lwc,Javascript,Salesforce,Salesforce Lightning,Lwc,我在运行Salesforce scratch组织应用程序时遇到此错误 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 updateCustomElmDe

我在运行Salesforce scratch组织应用程序时遇到此错误

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)

以前有人经历过这种情况吗?

事实上,我发现了这个问题

这个错误以前在我的组织中被抛出过,当时我要么没有.html文件,要么是拼写不正确;在名称上包括区分大小写


请参阅相关内容:

此问题的正确位置应该是salesforce.stackexchange.com-这里有一个类似的问题:谢谢您的指针@GrafiCode