legacy-knowledge-base
公開されました Jul. 2, 2025

aui-io-request throws io ... is not a function

written-by

Alfonso Crisci

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • 以下のようなコードを使用する場合
    AUI().use('aui-io-request', function(A){}
    ブラウザのコンソールでこのエラーが出ます。
    Uncaught TypeError: "io.upload is not a function"

環境への配慮

  • Liferay DXP 7.2 Fix Pack 2
  • Liferay DXP 7.3

決議

  • ioaui:script タグの依存関係リストに以下のように追加します。
    AUI().use('aui-base', 'io', 'aui-io-request', function(A){}

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base