カスタム Lightning コンポーネントのアクセスチェック違反は厳格に実施されています。これらは、あなたが直面する可能性のあるエラーメッセージとその修正方法です。弊社の開発者ガイドを参照することにより、アクセスチェックについて理解をより深めることができます。
エクスペリエンスビルダーのエラー
Action failed: c$CloudCrazeComponent$cntroller$getHost [Cannot read property 'Qb' of undefined]
Something has gone wrong. Error in $A.getCallback() [Cannot read property 'Qb' of undefined]
Failling descriptor: {markup://c:CloudCrazeTopicRelatedProducts}. Please try again.
Action failed: c$CloudCrazeComponent$cntroller$getHost [Cannot read property '$getTypeDefDescriptor$' of undefined]
Something has gone wrong. Error in $A.getCallback() [Cannot read property '$getTypeDefDescriptor$' of undefined]
Failling descriptor: {markup://c:CloudCrazeTopicRelatedProducts}. Please try again.
公開済みのコミュニティのエラー
Lightning コンポーネントのデバッグモードが無効 -ページにアクセスチェックエラーを伴う Lightning カスタムコンポーネントが含まれている場合、どのコンポーネントがエラーになっているか、また、ページのどこにあるかによって、そのページは表示されるか表示されない場合があります。エラーページが表示されない状況では、エラーになっているコンポーネントの例外とともに、ページの残りの部分が表示されます。
Lightning コンポーネントのデバッグモードが有効 - ユーザはエラーページへリダイレクトされません。その代わり、ユーザに無限のローディングインジケータが表示されます。そのページはコンポーネント内のエラーの場所によって、ロードに失敗します。ブラウザの開発者ツールを開くと、コンポーネントのアクセスチェックエラーの出力を確認することができます。
Something went wrong エラーの修正
このエラーを発生させているコンポーネントを特定することが最初のステップです。これは、エラーメッセージのダイアログにあるコンポーネント名を記録しておくことで特定することができます。エラーメッセージの例、“Action failed: c$CloudCrazeComponent$controller$getHost [Cannot read property '$getTypeDefDescriptor$' of undefined]” では、コンポーネントは c:CloudCrazeComponent という名称であり、controller javascript 内の getHost() 関数がその問題を引き起こしています。
開発者コンソール内でコンポーネントを開き、コードを分析します。問題を解決するために Lightning Aura コンポーネント開発者ガイドの「アクセス権チェックエラーの修正」セクションのガイドラインに従ってください。そして、変更を保存してください。
エクスペリエンスビルダーをリロードし、エラーを表示していたページへアクセスし、エラーダイアログがもう表示されないことを確認します。
一般的な問題
Aura コンポーネントの controller または helper javascript ファイルが、コンポーネントで定義されていないコンポーネント属性へアクセスしている場合、アクセスチェックエラーが発生します。
“Action failed: c$CloudCrazeComponent$controller$getHost [Cannot read property '$getTypeDefDescriptor$' of undefined]” エラーが発生する上記の例では、コンポーネントで <aura:attribute name=”someAttribute” type=”..” ../> が定義されていないときに、component.set(“v.someAttribute”, “someValue”) を呼び出しているコンポーネントの controller の getHost() 関数が原因でした。
000383577

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.