get_session()
我的配置文件:
ERROR in [at-loader] ./node_modules/@types/react-bootstrap/index.d.ts:20:55
TS2344: Type 'keyof T' does not satisfy the constraint 'string'.
Type 'string | number | symbol' is not assignable to type 'string'.
Type 'number' is not assignable to type 'string'.
ERROR in [at-loader] ./src/components/authentication/Login.tsx:78:67
TS2345: Argument of type 'typeof LoginComponent' is not assignable to parameter of type 'ComponentType<RouteComponentProps<any, StaticContext, any>>'.
Type 'typeof LoginComponent' is not assignable to type 'ComponentClass<RouteComponentProps<any, StaticContext, any>, any>'.
Types of parameters 'props' and 'props' are incompatible.
Type 'RouteComponentProps<any, StaticContext, any>' is not assignable to type 'loginProps'.
Property 'loginUser' is missing in type 'RouteComponentProps<any, StaticContext, any>'.
ERROR in [at-loader] ./src/components/authentication/Logout.tsx:26:34
TS2345: Argument of type 'typeof LogoutComponent' is not assignable to parameter of type 'ComponentType<RouteComponentProps<any, StaticContext, any>>'.
Type 'typeof LogoutComponent' is not assignable to type 'ComponentClass<RouteComponentProps<any, StaticContext, any>, any>'.
Type 'LogoutComponent' is not assignable to type 'Component<RouteComponentProps<any, StaticContext, any>, any, any>'.
Types of property 'props' are incompatible.
Type 'Readonly<{ children?: ReactNode; }> & Readonly<logoutProps>' is not assignable to type 'Readonly<{ children?: ReactNode; }> & Readonly<RouteComponentProps<any, StaticContext, any>>'.
Type 'Readonly<{ children?: ReactNode; }> & Readonly<logoutProps>' is not assignable to type 'Readonly<RouteComponentProps<any, StaticContext, any>>'.
Property 'location' is missing in type 'Readonly<{ children?: ReactNode; }> & Readonly<logoutProps>'.
ERROR in [at-loader] ./src/components/authentication/Register.tsx:74:70
TS2345: Argument of type 'typeof RegisterComponent' is not assignable to parameter of type 'ComponentType<RouteComponentProps<any, StaticContext, any>>'.
Type 'typeof RegisterComponent' is not assignable to type 'ComponentClass<RouteComponentProps<any, StaticContext, any>, any>'.
Types of parameters 'props' and 'props' are incompatible.
Type 'RouteComponentProps<any, StaticContext, any>' is not assignable to type 'registerProps'.
Property 'loginUser' is missing in type 'RouteComponentProps<any, StaticContext, any>'.
ERROR in [at-loader] ./src/components/events/CreateEvent.tsx:64:27
TS2345: Argument of type '{ [x: number]: any; }' is not assignable to parameter of type 'State | Pick<State, "category" | "eventTitle" | "eventDescription" | "eventDateTime" | "eventLocation" | "eventCapacity" | "createResultMessage" | "validationState"> | ((prevState: Readonly<...>, props: Readonly<...>) => State | Pick<...>)'.
Type '{ [x: number]: any; }' is not assignable to type '(prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, "category" | "eventTitle" | "eventDescription" | "eventDateTime" | "eventLocation" | "eventCapacity" | "createResultMessage" | "validationState">'.
Type '{ [x: number]: any; }' provides no match for the signature '(prevState: Readonly<State>, props: Readonly<Props>): State | Pick<State, "category" | "eventTitle" | "eventDescription" | "eventDateTime" | "eventLocation" | "eventCapacity" | "createResultMessage" | "validationState">'.
ERROR in [at-loader] ./src/components/events/EventListFilter.tsx:45:23
TS2345: Argument of type '{ [x: number]: any; }' is not assignable to parameter of type 'State | Pick<State, "category"> | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, "category">)'.
Type '{ [x: number]: any; }' is not assignable to type '(prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, "category">'.
Type '{ [x: number]: any; }' provides no match for the signature '(prevState: Readonly<State>, props: Readonly<Props>): State | Pick<State, "category">'.
ERROR in [at-loader] ./src/components/events/EventListFilterContainer.tsx:25:14
TS2345: Argument of type 'typeof EventListFilter' is not assignable to parameter of type 'ComponentType<RouteComponentProps<any, StaticContext, any>>'.
Type 'typeof EventListFilter' is not assignable to type 'ComponentClass<RouteComponentProps<any, StaticContext, any>, any>'.
Types of parameters 'props' and 'props' are incompatible.
Type 'RouteComponentProps<any, StaticContext, any>' is not assignable to type 'Props'.
Property 'onFilterApplied' is missing in type 'RouteComponentProps<any, StaticContext, any>'.
ERROR in [at-loader] ./src/components/events/EventListPresentation.tsx:130:13
TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'typeof import("C:/Users/Satwik Gardas/Desktop/EventHawk-master/node_modules/immutability-helper/index")' has no compatible call signatures.
ERROR in [at-loader] ./src/components/navigation/AppRoute.tsx:41:36
TS2345: Argument of type 'ComponentClass<Pick<AppRouteProps, "children" | "authState" | "history" | "location" | "component" | "render" | "path" | "exact" | "sensitive" | "strict" | "key" | "auth">, any> & { ...; }' is not assignable to parameter of type 'ComponentType<RouteComponentProps<any, StaticContext, any>>'.
Type 'ComponentClass<Pick<AppRouteProps, "children" | "authState" | "history" | "location" | "component" | "render" | "path" | "exact" | "sensitive" | "strict" | "key" | "auth">, any> & { ...; }' is not assignable to type 'ComponentClass<RouteComponentProps<any, StaticContext, any>, any>'.
Types of property 'propTypes' are incompatible.
Type 'ValidationMap<Pick<AppRouteProps, "children" | "authState" | "history" | "location" | "component" | "render" | "path" | "exact" | "sensitive" | "strict" | "key" | "auth">>' is not assignable to type 'ValidationMap<RouteComponentProps<any, StaticContext, any>>'.
Property 'match' is missing in type 'ValidationMap<Pick<AppRouteProps, "children" | "authState" | "history" | "location" | "component" | "render" | "path" | "exact" | "sensitive" | "strict" | "key" | "auth">>'.
ERROR in [at-loader] ./src/components/navigation/DropSidebar.tsx:25:26
TS2339: Property 'event' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<Pick<{ authState: AuthenticationState; filters: EventListFilterSetting; } & { onFilterApplied: (newFilter: EventListFilterSetting) => void; }, never>, any, any>> & Readonly<...> & Readonly<...>'.
ERROR in [at-loader] ./src/components/navigation/DropSidebar.tsx:25:33
TS7006: Parameter 'e' implicitly has an 'any' type.
ERROR in [at-loader] ./src/components/navigation/Header.tsx:52:34
TS2345: Argument of type 'ComponentClass<Pick<any, never>, any> & { WrappedComponent: ComponentClass<any, any> | StatelessComponent<any>; }' is not assignable to parameter of type 'ComponentType<RouteComponentProps<any, StaticContext, any>>'.
Type 'ComponentClass<Pick<any, never>, any> & { WrappedComponent: ComponentClass<any, any> | StatelessComponent<any>; }' is not assignable to type 'ComponentClass<RouteComponentProps<any, StaticContext, any>, any>'.
Types of property 'propTypes' are incompatible.
Type 'ValidationMap<Pick<any, never>>' is not assignable to type 'ValidationMap<RouteComponentProps<any, StaticContext, any>>'.
Property 'history' is missing in type 'ValidationMap<Pick<any, never>>'.
ERROR in [at-loader] ./src/components/navigation/Sidebar.tsx:73:80
TS2345: Argument of type 'typeof SidebarComponent' is not assignable to parameter of type 'ComponentType<RouteComponentProps<any, StaticContext, any>>'.
Type 'typeof SidebarComponent' is not assignable to type 'ComponentClass<RouteComponentProps<any, StaticContext, any>, any>'.
Types of parameters 'props' and 'props' are incompatible.
Type 'RouteComponentProps<any, StaticContext, any>' is not assignable to type 'SidebarProps'.
Property 'onFilterApplied' is missing in type 'RouteComponentProps<any, StaticContext, any>'.
ERROR in [at-loader] ./src/layout/App.tsx:35:33
TS2339: Property 'event' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<Pick<{ authState: AuthenticationState; filters: EventListFilterSetting; } & { onFilterApplied: (newFilter: EventListFilterSetting) => void; }, never>, any, any>> & Readonly<...> & Readonly<...>'.
ERROR in [at-loader] ./src/layout/App.tsx:36:33
TS2339: Property 'event' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<Pick<{ authState: AuthenticationState; filters: EventListFilterSetting; } & { onFilterApplied: (newFilter: EventListFilterSetting) => void; }, never>, any, any>> & Readonly<...> & Readonly<...>'.
ERROR in [at-loader] ./src/layout/App.tsx:38:31
TS2339: Property 'history' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<Pick<{ authState: AuthenticationState; filters: EventListFilterSetting; } & { onFilterApplied: (newFilter: EventListFilterSetting) => void; }, never>, any, any>> & Readonly<...> & Readonly<...>'.
ERROR in [at-loader] ./src/layout/App.tsx:46:28
TS2339: Property 'history' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<Pick<{ loginUser: (data: AuthenticationState) => void; }, never>, any, any>> & Readonly<{ children?: ReactNode; }> & Readonly<...>'.
ERROR in [at-loader] ./src/layout/App.tsx:54:31
TS2339: Property 'history' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<Pick<{ loginUser: (data: AuthenticationState) => void; }, never>, any, any>> & Readonly<{ children?: ReactNode; }> & Readonly<...>'.
ERROR in [at-loader] ./src/layout/App.tsx:59:33
TS2339: Property 'event' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<Pick<{ authState: AuthenticationState; filters: EventListFilterSetting; } & { onFilterApplied: (newFilter: EventListFilterSetting) => void; }, never>, any, any>> & Readonly<...> & Readonly<...>'.
ERROR in [at-loader] ./src/layout/App.tsx:60:33
TS2339: Property 'event' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<Pick<{ authState: AuthenticationState; filters: EventListFilterSetting; } & { onFilterApplied: (newFilter: EventListFilterSetting) => void; }, never>, any, any>> & Readonly<...> & Readonly<...>'.
ERROR in [at-loader] ./src/layout/App.tsx:67:33
TS2339: Property 'event' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<Pick<{ authState: AuthenticationState; filters: EventListFilterSetting; } & { onFilterApplied: (newFilter: EventListFilterSetting) => void; }, never>, any, any>> & Readonly<...> & Readonly<...>'.
ERROR in [at-loader] ./src/layout/App.tsx:68:33
TS2339: Property 'event' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<Pick<{ authState: AuthenticationState; filters: EventListFilterSetting; } & { onFilterApplied: (newFilter: EventListFilterSetting) => void; }, never>, any, any>> & Readonly<...> & Readonly<...>'.
ERROR in [at-loader] ./src/layout/App.tsx:75:33
TS2339: Property 'event' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<Pick<{ authState: AuthenticationState; filters: EventListFilterSetting; } & { onFilterApplied: (newFilter: EventListFilterSetting) => void; }, never>, any, any>> & Readonly<...> & Readonly<...>'.
ERROR in [at-loader] ./src/layout/App.tsx:76:33
TS2339: Property 'event' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<Pick<{ authState: AuthenticationState; filters: EventListFilterSetting; } & { onFilterApplied: (newFilter: EventListFilterSetting) => void; }, never>, any, any>> & Readonly<...> & Readonly<...>'.
ERROR in [at-loader] ./src/layout/App.tsx:83:33
TS2339: Property 'event' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<Pick<{ authState: AuthenticationState; filters: EventListFilterSetting; } & { onFilterApplied: (newFilter: EventListFilterSetting) => void; }, never>, any, any>> & Readonly<...> & Readonly<...>'.
ERROR in [at-loader] ./src/layout/App.tsx:84:33
TS2339: Property 'event' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<Pick<{ authState: AuthenticationState; filters: EventListFilterSetting; } & { onFilterApplied: (newFilter: EventListFilterSetting) => void; }, never>, any, any>> & Readonly<...> & Readonly<...>'.
ERROR in [at-loader] ./src/layout/App.tsx:86:47
TS2339: Property 'history' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<Pick<{ filters: EventListFilterSetting; } & { onFilterApplied: (newFilter: EventListFilterSetting) => void; }, never>, any, any>> & Readonly<...> & Readonly<...>'.
ERROR in [at-loader] ./src/layout/App.tsx:91:33
TS2339: Property 'event' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<Pick<{ authState: AuthenticationState; filters: EventListFilterSetting; } & { onFilterApplied: (newFilter: EventListFilterSetting) => void; }, never>, any, any>> & Readonly<...> & Readonly<...>'.
ERROR in [at-loader] ./src/layout/App.tsx:99:33
TS2339: Property 'type' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<Pick<{ authState: AuthenticationState; filters: EventListFilterSetting; } & { onFilterApplied: (newFilter: EventListFilterSetting) => void; }, never>, any, any>> & Readonly<...> & Readonly<...>'.
ERROR in [at-loader] ./src/layout/App.tsx:100:33
TS2339: Property 'event' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<Pick<{ authState: AuthenticationState; filters: EventListFilterSetting; } & { onFilterApplied: (newFilter: EventListFilterSetting) => void; }, never>, any, any>> & Readonly<...> & Readonly<...>'.
ERROR in [at-loader] ./src/services/exceptions.tsx:9:9
TS2556: Expected 0-1 arguments, but got 2 or more.
ERROR in [at-loader] ./src/services/exceptions.tsx:28:9
TS2556: Expected 0-1 arguments, but got 2 or more.
ERROR in [at-loader] ./src/views/HomeView.tsx:93:81
TS2345: Argument of type 'typeof HomeViewComponent' is not assignable to parameter of type 'ComponentType<RouteComponentProps<any, StaticContext, any>>'.
Type 'typeof HomeViewComponent' is not assignable to type 'ComponentClass<RouteComponentProps<any, StaticContext, any>, any>'.
Types of parameters 'props' and 'props' are incompatible.
Type 'RouteComponentProps<any, StaticContext, any>' is not assignable to type 'IHomeProps'.
Property 'onFilterApplied' is missing in type 'RouteComponentProps<any, StaticContext, any>'.