• EnglishEspañol日本語한국어Português
  • ログイン今すぐ開始

この機械翻訳は、参考として提供されています。

In the event of any inconsistency between the English version and the translated version, the English versionwill take priority. Please visit this page for more information.

問題を作成する

MooTools 関連のエラーが発生しました

問題

MooTools ライブラリを使用していると、ブラウザ コンソールまたは JavaScript errors [JavaScript エラー] ページに以下のようなエラーが表示されることに気づきました。

  • Uncaught TypeError: t is not a function
  • Uncaught (in promise) TypeError: Failed to execute 'removeEventListener' on 'EventTarget': 2 arguments required, but only 0 present.

原因

MooTools ライブラリ (特に互換性レイヤー) は、多くのネイティブ JavaScript オブジェクトおよびメソッドを変更するため、New Relic ブラウザ エージェントを含む新しいライブラリと競合する可能性があります。

ソリューション

  1. MooTools の最後のバージョンは 2016 年にリリースされたため、可能な場合には、MooTools から他のアクティブに保守されているライブラリに移行することが最良の戦略的選択となる可能性があります。
  2. MooTools から移行できない場合は、MooTools の最新バージョン 1.6.0nocompat ビルドに更新することをお勧めします。
  3. MooTools のカスタム ビルドを使用する場合は、カスタム ビルドの生成時に互換性レイヤーを無効にする必要がある場合があります。
Copyright © 2024 New Relic株式会社。

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.