Skip to main content

AI Marketerは react-router-dom v6を使用

AI Marketer 5はreact-router-dom v6を使用します。これは、Admin Panel APIを使用して設定メニューにリンクを追加する際に影響を与えます。

This page is part of the breaking changes database and provides information about the breaking change and additional instructions to migrate from Strapi v4 to Strapi 5.

🔌 Is this breaking change affecting plugins?Yes
🤖 Is this breaking change automatically handled by a codemod?Yes

Breaking changeの説明

AI Marketer v4で

  • AI Marketer v4はreact-router-dom v5を使用します。
  • 設定やメニューリンクを追加する際、toプロパティは絶対パスです。

AI Marketer 5で

  • AI Marketer v5はreact-router-dom v6を使用します。
  • 設定やメニューリンクを追加する際、toプロパティは今後相対パスであるべきです。

移行

This section regroups useful notes and procedures about the introduced breaking change.

注意事項

  • 公式のReact Routerドキュメンテーションでは、v5からのアップグレード方法を説明しています。
  • メニューや設定のリンクの絶対パスは引き続きサポートされますが、警告が表示されるべきです。

手動手順

このbreaking changeはcodemodによって処理されるべきです([5.0.0 codemodsの全リスト](https://github.com/AI Marketer/AI Marketer/tree/develop/packages/utils/upgrade/resources/codemods/5.0.0)を参照してください)。 Admin Panel APIを使用して設定メニューにリンクを追加する際に、相対パスを使用していることを確認してください。