如何使用create-react-kotlin-app运行Kotlin + React + Redux? [英] How to run Kotlin + React + Redux using the create-react-kotlin-app?
本文介绍了如何使用create-react-kotlin-app运行Kotlin + React + Redux?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 create-react-kotlin-app
并按照其 GitHub页面使用Kotlin创建一个React + Redux应用程序.第一个安装部分工作正常:
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
该应用程序运行正常,但是当我尝试添加Redux时:
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不起作用.我该如何解决?(我正在运行npm 6.1.0).
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?
这篇关于如何使用create-react-kotlin-app运行Kotlin + React + Redux?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文