You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import * as RNLocalize from 'react-native-localize';
const locales = RNLocalize.getLocales();
It causes this error:
/Users/user/Projekty/proj/node_modules/react-native/index.js:14
import typeof AccessibilityInfo from './Libraries/Components/AccessibilityInfo/AccessibilityInfo';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1178:20)
at Module._compile (node:internal/modules/cjs/loader:1220:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Object.require.extensions.<computed> [as .js] (/Users/user/Projekty/proj/node_modules/ts-node/src/index.ts:1608:43)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Function.Module._load (node:internal/modules/cjs/loader:960:12)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:121:18)
at Object.<anonymous> (/Users/user/Projekty/proj/node_modules/react-native-localize/dist/commonjs/NativeRNLocalize.ts:2:1)
The text was updated successfully, but these errors were encountered:
"@rtk-query/codegen-openapi": "^1.2.0",
"react-native-localize": "^3.0.2",
In my project I am using this code:
It causes this error:
The text was updated successfully, but these errors were encountered: