How to run Kotlin + React + Redux using the create-react-kotlin-app? - reactjs

I am using the create-react-kotlin-app and following the instructions on its GitHub page to create a React + Redux app using Kotlin. The first install part works fine:
create-react-kotlin-app my-app
cd my-app
npm start
The app works fine, but when I try to add Redux:
npm install #jetbrains/kotlin-react-redux
npm WARN #jetbrains/kotlin-extensions#1.0.1-pre.49 requires a peer of core-js#^2.5.7 but none is installed. You must install peer dependencies yourself.
npm WARN ajv-keywords#3.2.0 requires a peer of ajv#^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN css-loader#1.0.0 requires a peer of webpack#^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN url-loader#1.1.1 requires a peer of webpack#^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN #jetbrains/kotlin-react-redux#5.0.7-pre.49 requires a peer of #jetbrains/kotlin-redux#^4.0.0-pre.49 but none is installed. You must install peer dependencies yourself.
npm WARN #jetbrains/kotlin-react-redux#5.0.7-pre.49 requires a peer of react-redux#^5.0.7 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ #jetbrains/kotlin-react-redux#5.0.7-pre.49
added 1 package from 1 contributor and audited 5522 packages in 9.891s
found 0 vulnerabilities
Redux doesn't work. How do I fix this? (I am running npm 6.1.0).

Hi #divlan Have you tried working through officail Hands-on on Kotlin React App?

Related

React Native Error: react-native#0.41.2 requires a peer of react#~15.4.0

I get below error when trying to npm install on this project: https://github.com/datso/react-native-pjsip-app
tar: .libs.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
npm WARN react-native#0.41.2 requires a peer of react#~15.4.0 but none is installed. You must install peer dependencies yourself.
I can't figure out how to install React Native, the project is one year old and I guess I must somehow update to latest version?
Following guide from http://www.cnblogs.com/mmx8861/p/9150009.html I did:
n
pm cache clean
Modified package.json with: "react":"~15.4.1"; "react-native":"0.42.3"; "react-test-renderer":"15.4.1"
npm install all module
npm install
npm i react-native-maps#0.12.5 --S
react-native link react-native-maps
Manually changing to React16 results in :
npm WARN enzyme#2.9.1 requires a peer of react#0.13.x || 0.14.x || ^15.0.0-0 || 15.x but none is installed. You must install peer dependencies yourself.
npm WARN react-dom#15.6.2 requires a peer of react#^15.6.2 but none is installed. You must install peer dependencies yourself.
npm WARN The package react is included as both a dev and production dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
Then I changed "enzyme": "^2.9.1" to "enzyme": "^3.0.0" and "react-dom": "^15.6.0" to "react-dom": "^15.6.0" and now I'm stuck at below:
npm WARN react-addons-perf#15.4.2 requires a peer of react-dom#^15.4.2 but none is installed. You must install peer dependencies yourself.
npm WARN react-addons-test-utils#15.6.2 requires a peer of react-dom#^15.4.2 but none is installed. You must install peer dependencies yourself.
npm WARN react-dom#15.6.2 requires a peer of react#^15.6.2 but none is installed. You must install peer dependencies yourself.
npm WARN The package react is included as both a dev and production dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
It seems according to React the support for react-addons-perf is discontinued as of React 16 !
How do I fix the npm install errors?
Cheers

react native error fsevents#1.2.4 (node_modules\fsevents

Hello I am getting these error after installing react native-naviation component
I am using EXPO for instead of NVD. More important is to resolve bold warning(last two warning)
npm WARN eslint-plugin-react-native#3.2.1 requires a peer of eslint#^3.17.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN native-base#2.7.2 requires a peer of react#>=16.4.1 but none is installed. You must install peer dependencies yourself.
npm WARN native-base#2.7.2 requires a peer of react-native#>=0.56.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-maps#0.21.0 requires a peer of react-native#^0.51 || ^0.52 || ^0.53 || ^0.54 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-reanimated#1.0.0-alpha.3 requires a peer of react#16.0.0-alpha.6 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-reanimated#1.0.0-alpha.3 requires a peer of react-native#^0.44.1 but none is installed. You must install peer dependencies yourself.
**npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules\fsevents):**
**npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})**
None of these errors are anything to worry about. Infact, they are not errors but a warnings.
eslint code quality checking software. It simply checks your code to see if it is adhering to the best standards. You could turn off that warning if you wished.
fsevents is an optional dependency. This error comes up (usually) if you are using npm on mac systems. It should have no effect on your build though. If you're particularly upset about those last two errors, run npm i -f to force a fetch of remote resources (which should get rid of that dependency issue).

React-bootstrap not installing

I'm having issue installing react and react-bootstrap. I used them in the past and everything was working fine. But now, I seem to have an issue installing or updating them.
After the code line: npm install --save react-bootstrap in my terminal, I get these errors:
npm WARN react-bootstrap#0.32.1 requires a peer of react#^0.14.9 || >=15.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-bootstrap#0.32.1 requires a peer of react-dom#^0.14.9 || >=15.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-prop-types#0.4.0 requires a peer of react#>=0.14.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-transition-group#2.2.1 requires a peer of react#>=15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-transition-group#2.2.1 requires a peer of react-dom#>=15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-overlays#0.8.3 requires a peer of react#^0.14.9 || >=15.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-overlays#0.8.3 requires a peer of react-dom#^0.14.9 || >=15.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN prop-types-extra#1.0.1 requires a peer of react#>=0.14.0 but none is installed. You must install peer dependencies yourself.
npm WARN uncontrollable#4.1.0 requires a peer of react#>=0.11.0 but none is installed. You must install peer dependencies yourself.
Even my past react projects aren't working anymore and I can't find in the docs anything about these errors.
Thank you for any help.
I suspect there's an typo in your command line
npm install --save react-booTstrap

[react-native]npm install warn require multiple version react

I'm running a react-native project,and it's package.json dependencies some third-part libraries,but maybe these libraries haven't update for a long time,they require different version of react.
When I npm install, I got warning below:
npm WARN react-native#0.43.3 requires a peer of react#16.0.0-alpha.6 but none was installed.
npm WARN native-base-shoutem-theme#0.1.0 requires a peer of react#>=15.1.0 but none was installed.
npm WARN #shoutem/animation#0.8.10 requires a peer of react#^15.0.0 but none was installed.
npm WARN react-static-container#1.0.1 requires a peer of react#^0.13.0 || ^0.14.0 || ^15.0.0 but none was installed.
npm WARN react-test-renderer#15.4.2 requires a peer of react#^15.4.2 but none was installed.
I'm not sure npm could install multiple version in a single project.So how could I fix this problem?

Error when trying npm install tslint and rxjs

I've tried npm install tslint and npm install rxjs, both run after npm cache clean and with #latest in the end. Every time I keep getting "UNMET PEER DEPENDECY rxjs#5.0.3" and "UNMET PEER DEPENDENCY tslint#4.3.1".
The entire failure stack is
[jannik#jannik-dimsen app (AngularApp *)]$ npm install
first-app#0.0.0 /home/jannik/angular2apps/first-app
├── UNMET PEER DEPENDENCY rxjs#5.0.3
└── UNMET PEER DEPENDENCY tslint#4.3.1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.0.17: wanted {"os":"darwin","
arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN #angular/core#2.2.3 requires a peer of rxjs#5.0.0-beta.12 but none was installed.
npm WARN #angular/http#2.2.3 requires a peer of rxjs#5.0.0-beta.12 but none was installed.
npm WARN #angular/router#3.2.3 requires a peer of rxjs#5.0.0-beta.12 but none was installed.
npm WARN codelyzer#2.0.0-beta.3 requires a peer of tslint#~4.0.0 but none was installed.
npm WARN tslint-loader#2.1.5 requires a peer of tslint#^3.0.0 but none was installed.
npm ERR! code 1
Some sites suggested running npm cache clean but that didn't fix my problem, and I can't figure out why I can't install those npm modules. I've added them to the package.json file as well and tried a npm install giving the same error

Resources