Skip to content

Commit

Permalink
add dependency group for react to ensure react and react-dom are on t…
Browse files Browse the repository at this point in the history
…he same version
  • Loading branch information
AlessioGr committed Aug 26, 2024
1 parent 5d5c657 commit 4c00ce2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/payload/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,11 @@ export class BasePayload {
],
targetVersionDependency: 'payload',
},
{
name: 'react',
dependencies: ['react', 'react-dom'],
targetVersionDependency: 'react',
},
],
dependencyVersions: {
next: {
Expand Down

0 comments on commit 4c00ce2

Please sign in to comment.