fix(expo): fixing version conflict of react (#14144)
This commit is contained in:
parent
74d8a4830e
commit
cac1f30a16
@ -25,14 +25,12 @@ import {
|
|||||||
easCliVersion,
|
easCliVersion,
|
||||||
deprecatedExpoCliVersion,
|
deprecatedExpoCliVersion,
|
||||||
expoWebpackConfig,
|
expoWebpackConfig,
|
||||||
} from '../../utils/versions';
|
|
||||||
|
|
||||||
import {
|
|
||||||
reactDomVersion,
|
|
||||||
reactVersion,
|
reactVersion,
|
||||||
reactTestRendererVersion,
|
reactTestRendererVersion,
|
||||||
typesReactVersion,
|
typesReactVersion,
|
||||||
} from '@nrwl/react/src/utils/versions';
|
reactDomVersion,
|
||||||
|
} from '../../utils/versions';
|
||||||
|
|
||||||
import { runTasksInSerial } from '@nrwl/workspace/src/utilities/run-tasks-in-serial';
|
import { runTasksInSerial } from '@nrwl/workspace/src/utilities/run-tasks-in-serial';
|
||||||
import { jestInitGenerator } from '@nrwl/jest';
|
import { jestInitGenerator } from '@nrwl/jest';
|
||||||
import { detoxInitGenerator } from '@nrwl/detox';
|
import { detoxInitGenerator } from '@nrwl/detox';
|
||||||
|
|||||||
@ -10,6 +10,11 @@ export const expoCliVersion = '0.4.10'; // @expo/cli
|
|||||||
export const easCliVersion = '3.1.1';
|
export const easCliVersion = '3.1.1';
|
||||||
export const babelPresetExpoVersion = '~9.2.2';
|
export const babelPresetExpoVersion = '~9.2.2';
|
||||||
|
|
||||||
|
export const reactVersion = '18.1.0';
|
||||||
|
export const reactDomVersion = '18.1.0';
|
||||||
|
export const reactTestRendererVersion = '18.1.0';
|
||||||
|
export const typesReactVersion = '18.0.26';
|
||||||
|
|
||||||
export const reactNativeVersion = '0.70.5';
|
export const reactNativeVersion = '0.70.5';
|
||||||
export const typesReactNativeVersion = '0.70.7';
|
export const typesReactNativeVersion = '0.70.7';
|
||||||
export const reactNativeWebVersion = '~0.18.10';
|
export const reactNativeWebVersion = '~0.18.10';
|
||||||
|
|||||||
@ -13,17 +13,13 @@ import { addBabelInputs } from '@nrwl/js/src/utils/add-babel-inputs';
|
|||||||
|
|
||||||
import { jestInitGenerator } from '@nrwl/jest';
|
import { jestInitGenerator } from '@nrwl/jest';
|
||||||
import { detoxInitGenerator } from '@nrwl/detox';
|
import { detoxInitGenerator } from '@nrwl/detox';
|
||||||
import {
|
|
||||||
reactTestRendererVersion,
|
|
||||||
reactVersion,
|
|
||||||
typesReactVersion,
|
|
||||||
} from '@nrwl/react/src/utils/versions';
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
babelRuntimeVersion,
|
babelRuntimeVersion,
|
||||||
jestReactNativeVersion,
|
jestReactNativeVersion,
|
||||||
metroVersion,
|
metroVersion,
|
||||||
nxVersion,
|
nxVersion,
|
||||||
|
reactDomVersion,
|
||||||
reactNativeAsyncStorageAsyncStorageVersion,
|
reactNativeAsyncStorageAsyncStorageVersion,
|
||||||
reactNativeCommunityCli,
|
reactNativeCommunityCli,
|
||||||
reactNativeCommunityCliAndroid,
|
reactNativeCommunityCliAndroid,
|
||||||
@ -32,10 +28,13 @@ import {
|
|||||||
reactNativeSvgTransformerVersion,
|
reactNativeSvgTransformerVersion,
|
||||||
reactNativeSvgVersion,
|
reactNativeSvgVersion,
|
||||||
reactNativeVersion,
|
reactNativeVersion,
|
||||||
|
reactTestRendererVersion,
|
||||||
|
reactVersion,
|
||||||
testingLibraryJestNativeVersion,
|
testingLibraryJestNativeVersion,
|
||||||
testingLibraryReactNativeVersion,
|
testingLibraryReactNativeVersion,
|
||||||
typesNodeVersion,
|
typesNodeVersion,
|
||||||
typesReactNativeVersion,
|
typesReactNativeVersion,
|
||||||
|
typesReactVersion,
|
||||||
} from '../../utils/versions';
|
} from '../../utils/versions';
|
||||||
|
|
||||||
import { addGitIgnoreEntry } from './lib/add-git-ignore-entry';
|
import { addGitIgnoreEntry } from './lib/add-git-ignore-entry';
|
||||||
@ -76,6 +75,7 @@ export function updateDependencies(host: Tree) {
|
|||||||
host,
|
host,
|
||||||
{
|
{
|
||||||
react: reactVersion,
|
react: reactVersion,
|
||||||
|
'react-dom': reactDomVersion,
|
||||||
'react-native': reactNativeVersion,
|
'react-native': reactNativeVersion,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -11,6 +11,11 @@ export const reactNativeCommunityCli = '9.3.2';
|
|||||||
export const reactNativeCommunityCliIos = '9.3.0';
|
export const reactNativeCommunityCliIos = '9.3.0';
|
||||||
export const reactNativeCommunityCliAndroid = '9.3.1';
|
export const reactNativeCommunityCliAndroid = '9.3.1';
|
||||||
|
|
||||||
|
export const reactVersion = '18.1.0';
|
||||||
|
export const reactDomVersion = '18.1.0';
|
||||||
|
export const reactTestRendererVersion = '18.1.0';
|
||||||
|
export const typesReactVersion = '18.0.26';
|
||||||
|
|
||||||
export const reactNativeConfigVersion = '1.4.11';
|
export const reactNativeConfigVersion = '1.4.11';
|
||||||
export const reactNativeAsyncStorageAsyncStorageVersion = '1.17.11';
|
export const reactNativeAsyncStorageAsyncStorageVersion = '1.17.11';
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user