import {UIRouter, UIView, UISref, UISrefActive, pushStateLocationPlugin} from 'ui-router-react';
時到app.tsx是我一直在關注ui-router-react
文檔我有很多用的WebPack問題編譯代碼庫我(https://ui-router.github.io/react/)當我得到這些錯誤:
ERROR in [at-loader] node_modules/ui-router-core/lib/common/common.d.ts:388:31
TS7006: Parameter 'a' implicitly has an 'any' type.
ERROR in [at-loader] node_modules/ui-router-core/lib/common/common.d.ts:388:34
TS7006: Parameter 'b' implicitly has an 'any' type.
ERROR in [at-loader] node_modules/ui-router-core/lib/resolve/resolveContext.d.ts:7:22
TS7005: Variable 'NATIVE_INJECTOR_TOKEN' implicitly has an 'any' type.
ERROR in [at-loader] node_modules/ui-router-core/lib/transition/transitionHook.d.ts:13:37
TS7006: Parameter 'error' implicitly has an 'any' type.
ERROR in [at-loader] src/components/loginComponent.tsx:23:33
TS2314: Generic type 'KeyboardEvent<T>' requires 1 type argument(s).
ERROR in [at-loader] src/components/loginComponent.tsx:32:31
TS2314: Generic type 'KeyboardEvent<T>' requires 1 type argument(s).
我想在我的webpack.config.js
的WebPack並不想被看node_modules
但很明顯,它是。
這裏是枝下reactRouting鏈接回購
https://github.com/JMStudiosJoe/ReactPractice/tree/reactRouting
這裏有太多的問題需要具體回答。考慮將它們分解成單獨的問題,其中包括配置和中斷組件。 – Chris