PaulRichez / models-relation-diagram

MIT License
3 stars 0 forks source link

v5 compatibility #1

Open lenybernard opened 3 weeks ago

lenybernard commented 3 weeks ago

Hi,

The plugin doesn't build with strapi v5 :

After having moved js files to jsx files and ran yarn build, I get at least the following issue :

✖ Building admin panel

[ERROR] There seems to be an unexpected error, try again with --debug for more information

RollupError: node_modules/@strapi/helper-plugin/dist/index.mjs (6:9): "Redirect" is not exported by "node_modules/react-router-dom/dist/index.js", imported by "node_modules/@strapi/helper-plugin/dist/index.mjs". │ file: /opt/app/packages/cms/node_modules/@strapi/helper-plugin/dist/index.mjs:6:9 │ 4: import { useIntl } from "react-intl"; │ 5: import { useQuery as useQuery$1, useQueries } from "react-query"; │ 6: import { Redirect, useLocation, useHistory, NavLink } from "react-router-dom"; │ ^ │ 7: import * as React from "react"; │ 8: import { useMemo, useCallback, useState, useEffect, useRef } from "react"; │ at getRollupError (file:///opt/app/packages/cms/node_modules/rollup/dist/es/shared/parseAst.js:392:41)

PaulRichez commented 3 weeks ago

Hey. I look this weekend for a potential fix, or give you some informations for fix it.

PaulRichez commented 3 weeks ago

Apparently the CLI of version 5 does not offer the generation of plugins, I do not think that it is possible to create plugins in this version of strapi still in Beta, I continue to investigate but I do not think that my plugin is compatible before a few weeks