【问题标题】:How to run Kotlin + React + Redux using the create-react-kotlin-app?如何使用 create-react-kotlin-app 运行 Kotlin + React + Redux?
【发布时间】:2019-02-09 21:03:08
【问题描述】:

我正在使用 create-react-kotlin-app 并按照其 GitHub page 上的说明使用 Kotlin 创建 React + Redux 应用程序。第一个安装部分工作正常:

create-react-kotlin-app my-app
cd my-app
npm start

应用运行良好,但是当我尝试添加 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)。

【问题讨论】:

    标签: reactjs npm kotlin react-redux jetbrains-ide


    【解决方案1】:

    嗨 @divlan 您是否尝试过在 Kotlin React App 上通过官方 Hands-on 工作?

    【讨论】:

      猜你喜欢
      • 2020-02-17
      • 2019-05-04
      • 2018-08-13
      • 2017-07-02
      • 2018-08-18
      • 2020-11-21
      • 1970-01-01
      • 1970-01-01
      • 2018-09-21
      相关资源
      最近更新 更多