'react-navigation-stack'; error

Здравствуйте я хочу организовать переход между страницами

import Screen1 from './Screen1.tsx';
import Screen2 from './Screen2.tsx';

но что я только не пытался делать у меня ошибка в строке

 import { createStackNavigator } from 'react-navigation-stack';

Вот что показывает терминал

X [ERROR] Unexpected "typeof"

node_modules/react-native/index.js:15:7:
  15 │ import typeof ActionSheetIOS from './Libraries/ActionSheetIOS/ActionSheetIOS';
     ╵        ~~~~~~

X [ERROR] Expected "from" but found "{"

node_modules/react-native/Libraries/Utilities/codegenNativeComponent.js:13:12:
  13 │ import type {HostComponent} from '../../Libraries/Renderer/shims/ReactNativeTypes';
     │             ^
     ╵             from

D:\практика\praktik_sait\i18next-example-main_ts\node_modules\esbuild\lib\main.js:1477 let error = new Error(text);

В чем может быть дело?


Ответы (0 шт):