We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d56ebe3 commit 3a01652Copy full SHA for 3a01652
.changeset/big-garlics-run.md
@@ -0,0 +1,5 @@
1
+---
2
+'@strapi/sdk-plugin': minor
3
4
+
5
+make react deps compatible with design system
src/cli/commands/plugin/init/action.ts
@@ -364,10 +364,10 @@ const getPluginTemplate = ({ suggestedPackageName }: PluginTemplateOptions) => {
364
365
pkgJson.devDependencies = {
366
...pkgJson.devDependencies,
367
- react: '*',
368
- 'react-dom': '*',
369
- 'react-router-dom': '*',
370
- 'styled-components': '*',
+ react: '^17.0.0 || ^18.0.0',
+ 'react-dom': '^17.0.0 || ^18.0.0',
+ 'react-router-dom': '^6.0.0',
+ 'styled-components': '^6.0.0',
371
};
372
373
pkgJson.peerDependencies = {
0 commit comments