Description
package.json
{
"name": "blogs",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest",
"lint": "eslint ."
},
"dependencies": {
"@react-keycloak/native": "^0.6.0",
"react": "17.0.2",
"react-native": "0.68.0",
"react-native-inappbrowser-reborn": "^3.6.3"
},
"devDependencies": {
"@babel/core": "^7.17.8",
"@babel/runtime": "^7.17.8",
"@react-native-community/eslint-config": "^3.0.1",
"babel-jest": "^27.5.1",
"eslint": "^8.12.0",
"jest": "^27.5.1",
"metro-react-native-babel-preset": "^0.70.0",
"react-test-renderer": "17.0.2"
},
"jest": {
"preset": "react-native"
}
}
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Failed to load plugin 'flowtype' declared in '.eslintrc.js » @react-native-community/eslint-config#overrides[0]': Package subpath './lib/rules/no-unused-expressions' is not defined by "exports" in /home/darko/WebstormProjects/react-native/blogs/node_modules/eslint/package.json
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Failed to load plugin 'flowtype' declared in '.eslintrc.js » @react-native-community/eslint-config#overrides[0]': Package subpath './lib/rules/no-unused-expressions' is not defined by "exports" in /home/darko/WebstormProjects/react-native/blogs/node_modules/eslint/package.json
at new NodeError (node:internal/errors:371:5)
at throwExportsNotFound (node:internal/modules/esm/resolve:453:9)
at packageExportsResolve (node:internal/modules/esm/resolve:731:3)
at resolveExports (node:internal/modules/cjs/loader:482:36)
at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/home/darko/WebstormProjects/react-native/blogs/node_modules/eslint-plugin-flowtype/dist/rules/noUnusedExpressions.js:7:28)
Process finished with exit code -1
So I did
yarn add -D eslint-plugin-flowtype
which results in
Parsing error: require() of ES Module /home/darko/WebstormProjects/react-native/blogs/node_modules/eslint-scope/lib/definition.js from /home/darko/WebstormProjects/react-native/blogs/node_modules/babel-eslint/lib/require-from-eslint.js not supported.
Instead change the require of definition.js in /home/darko/WebstormProjects/react-native/blogs/node_modules/babel-eslint/lib/require-from-eslint.js to a dynamic import() which is available in all CommonJS modules.
Process finished with exit code -1
This is my 1st contact with react-native.
Version
0.68.0
Output of npx react-native info
System:
OS: Linux 5.16 Arch Linux
Redacted
Binaries:
Node: 16.14.2 - ~/.nvm/versions/node/v16.14.2/bin/node
Yarn: 1.22.17 - ~/.yarn/bin/yarn
npm: 8.5.0 - ~/.nvm/versions/node/v16.14.2/bin/npm
Watchman: Not Found
SDKs:
Android SDK:
API Levels: 19, 22, 26, 27, 28, 29, 30, 31
Build Tools: 26.0.2, 27.0.3, 28.0.3, 29.0.2, 30.0.2, 30.0.3
System Images: android-26 | Google Play Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom
Android NDK: 22.1.7171670
IDEs:
Android Studio: AI-211.7628.21.2111.8193401
Languages:
Java: javac 18 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.68.0 => 0.68.0
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
Create new react native app with Webstorm
yarn add @react-keycloak/native
yarn add react-native-inappbrowser-reborn
npx uri-scheme add de.icod.blogs --android
Open App.js in Webstorm
I assume the result is the same without the 2 yarn lines and uri-scheme
Snack, code example, screenshot, or link to a repository
No response
Description
package.json
So I did
yarn add -D eslint-plugin-flowtypewhich results in
This is my 1st contact with react-native.
Version
0.68.0
Output of
npx react-native infoSystem:
OS: Linux 5.16 Arch Linux
Redacted
Binaries:
Node: 16.14.2 - ~/.nvm/versions/node/v16.14.2/bin/node
Yarn: 1.22.17 - ~/.yarn/bin/yarn
npm: 8.5.0 - ~/.nvm/versions/node/v16.14.2/bin/npm
Watchman: Not Found
SDKs:
Android SDK:
API Levels: 19, 22, 26, 27, 28, 29, 30, 31
Build Tools: 26.0.2, 27.0.3, 28.0.3, 29.0.2, 30.0.2, 30.0.3
System Images: android-26 | Google Play Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom
Android NDK: 22.1.7171670
IDEs:
Android Studio: AI-211.7628.21.2111.8193401
Languages:
Java: javac 18 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.68.0 => 0.68.0
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
Create new react native app with Webstorm
yarn add @react-keycloak/native
yarn add react-native-inappbrowser-reborn
npx uri-scheme add de.icod.blogs --android
Open App.js in Webstorm
I assume the result is the same without the 2 yarn lines and uri-scheme
Snack, code example, screenshot, or link to a repository
No response