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