Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in the build of the app #190

Open
HashemSalameh opened this issue Nov 27, 2024 · 1 comment
Open

error in the build of the app #190

HashemSalameh opened this issue Nov 27, 2024 · 1 comment
Labels
invalid This doesn't seem right

Comments

@HashemSalameh
Copy link

HashemSalameh commented Nov 27, 2024

i have migrated to the latest version of strapi, and i want to add the sitemap addon but the issue is in the react-router-dom dependency where strapi require version 6 of it and the strapi webtools->sitemap use react-router-dom v5

i'll provide you with my dependencies of the package.json using node version 20.

the scenario is from my terminal im using @latest because i have this issue since yesterday so i was trying to seek the latest:

yarn add @pluginpal/webtools-core@latest
then,
yarn add @pluginpal/webtools-addon-sitemap@latest
then,
yarn build

i got this error:
[vite]: Rollup failed to resolve import "@strapi/design-system/v2" from "C:/Users/user/repos/Talmaro/TalmaroCMS/node_modules/@strapi/helper-plugin/dist/index.mjs".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
build.rollupOptions.external

i tried then to upgrade the helper-plugin:

yarn add @strapi/helper-plugin@latest

then i built the app and got the following error,
node_modules/@pluginpal/webtools-addon-sitemap/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/@pluginpal/webtools-addon-sitemap/node_modules/@strapi/helper-plugin/dist/index.mjs".
file: C:/Users/user/repos/Talmaro/TalmaroCMS/node_modules/@pluginpal/webtools-addon-sitemap/node_modules/@strapi/helper-plugin/dist/index.mjs:6:9

the following are the dependencies of my package.json:
"dependencies": {
"@pluginpal/webtools-addon-sitemap": "^1.0.0-beta.10",
"@pluginpal/webtools-core": "^1.0.0-beta.15",
"@strapi/plugin-users-permissions": "5.4.1",
"@strapi/provider-upload-aws-s3": "^5.4.1",
"@strapi/strapi": "5.4.1",
"@strapi/utils": "^4.8.2",
"pg": "8.8.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-router-dom": "^6.0.0",
"strapi-plugin-populate-deep": "^3.0.0",
"strapi-v5-plugin-populate-deep": "^4.0.4",
"styled-components": "^6.0.0"
},
"engines": {
"node": ">=18.x.x",
"npm": ">=6.0.0"
},

@HashemSalameh HashemSalameh changed the title error in the build of the app (incompatibility issue error in the build of the app Nov 27, 2024
@boazpoolman
Copy link
Member

Hi @HashemSalameh,

The sitemap plugin does not yet support Strapi 5. See #186.

@boazpoolman boazpoolman added the invalid This doesn't seem right label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants