Fresh installation if react + redux project builds with 5 errors #483

Closed
opened 2025-08-09 17:16:27 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @andrei-galkin on 8/22/2017

I just did fresh install of react + redux project and it compiles with 5 errors which are below.

Checking finished with 5 errors
Hash: 08f575dd6f1e8269fbfde6a114b21af4daf8a817
Version: webpack 2.5.1
Child
Hash: 08f575dd6f1e8269fbfd
Time: 3716ms
Asset Size Chunks Chunk Names
main-client.js 30.7 kB 0 [emitted] main-client
site.css 1.56 kB 0 [emitted] main-client
main-client.js.map 40.9 kB 0 [emitted] main-client
site.css.map 85 bytes 0 [emitted] main-client

ERROR in [at-loader] ./ClientApp/routes.tsx:9:12
    TS2322: Type '{ exact: true; path: "/"; component: typeof Home; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route<T>> & Readonly<{ children?: ReactNode; }> & ...'.
  Type '{ exact: true; path: "/"; component: typeof Home; }' is not assignable to type 'Readonly<T>'.

ERROR in [at-loader] ./ClientApp/routes.tsx:10:12
    TS2322: Type '{ path: "/counter"; component: typeof Counter; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route<T>> & Readonly<{ children?: ReactNode; }> & ...'.
  Type '{ path: "/counter"; component: typeof Counter; }' is not assignable to type 'Readonly<T>'.

ERROR in [at-loader] ./ClientApp/routes.tsx:11:12
    TS2322: Type '{ path: "/fetchdata/:startDateIndex?"; component: typeof FetchData; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route<T>> & Readonly<{ children?: ReactNode; }> & ...'.
  Type '{ path: "/fetchdata/:startDateIndex?"; component: typeof FetchData; }' is not assignable to type 'Readonly<T>'.

ERROR in [at-loader] ./node_modules/@types/react-router/index.d.ts:68:21
    TS2694: Namespace 'React' has no exported member 'ComponentType'.

ERROR in [at-loader] ./node_modules/@types/react-router/index.d.ts:103:48
    TS2694: Namespace 'React' has no exported member 'ComponentType'.

Child
Hash: e6a114b21af4daf8a817
Time: 3427ms
Asset Size Chunks Chunk Names
main-server.js 77.3 kB 0 [emitted] main-server

ERROR in [at-loader] ./ClientApp/routes.tsx:9:12
    TS2322: Type '{ exact: true; path: "/"; component: typeof Home; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route<T>> & Readonly<{ children?: ReactNode; }> & ...'.
  Type '{ exact: true; path: "/"; component: typeof Home; }' is not assignable to type 'Readonly<T>'.

ERROR in [at-loader] ./ClientApp/routes.tsx:10:12
    TS2322: Type '{ path: "/counter"; component: typeof Counter; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route<T>> & Readonly<{ children?: ReactNode; }> & ...'.
  Type '{ path: "/counter"; component: typeof Counter; }' is not assignable to type 'Readonly<T>'.

ERROR in [at-loader] ./ClientApp/routes.tsx:11:12
    TS2322: Type '{ path: "/fetchdata/:startDateIndex?"; component: typeof FetchData; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route<T>> & Readonly<{ children?: ReactNode; }> & ...'.
  Type '{ path: "/fetchdata/:startDateIndex?"; component: typeof FetchData; }' is not assignable to type 'Readonly<T>'.

ERROR in [at-loader] ./node_modules/@types/react-router/index.d.ts:68:21
    TS2694: Namespace 'React' has no exported member 'ComponentType'.

ERROR in [at-loader] ./node_modules/@types/react-router/index.d.ts:103:48
    TS2694: Namespace 'React' has no exported member 'ComponentType'.

Thanks for the support.

*Originally created by @andrei-galkin on 8/22/2017* I just did fresh install of react + redux project and it compiles with 5 errors which are below. Checking finished with 5 errors Hash: 08f575dd6f1e8269fbfde6a114b21af4daf8a817 Version: webpack 2.5.1 Child Hash: 08f575dd6f1e8269fbfd Time: 3716ms Asset Size Chunks Chunk Names main-client.js 30.7 kB 0 [emitted] main-client site.css 1.56 kB 0 [emitted] main-client main-client.js.map 40.9 kB 0 [emitted] main-client site.css.map 85 bytes 0 [emitted] main-client ERROR in [at-loader] ./ClientApp/routes.tsx:9:12 TS2322: Type '{ exact: true; path: "/"; component: typeof Home; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route<T>> & Readonly<{ children?: ReactNode; }> & ...'. Type '{ exact: true; path: "/"; component: typeof Home; }' is not assignable to type 'Readonly<T>'. ERROR in [at-loader] ./ClientApp/routes.tsx:10:12 TS2322: Type '{ path: "/counter"; component: typeof Counter; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route<T>> & Readonly<{ children?: ReactNode; }> & ...'. Type '{ path: "/counter"; component: typeof Counter; }' is not assignable to type 'Readonly<T>'. ERROR in [at-loader] ./ClientApp/routes.tsx:11:12 TS2322: Type '{ path: "/fetchdata/:startDateIndex?"; component: typeof FetchData; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route<T>> & Readonly<{ children?: ReactNode; }> & ...'. Type '{ path: "/fetchdata/:startDateIndex?"; component: typeof FetchData; }' is not assignable to type 'Readonly<T>'. ERROR in [at-loader] ./node_modules/@types/react-router/index.d.ts:68:21 TS2694: Namespace 'React' has no exported member 'ComponentType'. ERROR in [at-loader] ./node_modules/@types/react-router/index.d.ts:103:48 TS2694: Namespace 'React' has no exported member 'ComponentType'. Child Hash: e6a114b21af4daf8a817 Time: 3427ms Asset Size Chunks Chunk Names main-server.js 77.3 kB 0 [emitted] main-server ERROR in [at-loader] ./ClientApp/routes.tsx:9:12 TS2322: Type '{ exact: true; path: "/"; component: typeof Home; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route<T>> & Readonly<{ children?: ReactNode; }> & ...'. Type '{ exact: true; path: "/"; component: typeof Home; }' is not assignable to type 'Readonly<T>'. ERROR in [at-loader] ./ClientApp/routes.tsx:10:12 TS2322: Type '{ path: "/counter"; component: typeof Counter; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route<T>> & Readonly<{ children?: ReactNode; }> & ...'. Type '{ path: "/counter"; component: typeof Counter; }' is not assignable to type 'Readonly<T>'. ERROR in [at-loader] ./ClientApp/routes.tsx:11:12 TS2322: Type '{ path: "/fetchdata/:startDateIndex?"; component: typeof FetchData; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route<T>> & Readonly<{ children?: ReactNode; }> & ...'. Type '{ path: "/fetchdata/:startDateIndex?"; component: typeof FetchData; }' is not assignable to type 'Readonly<T>'. ERROR in [at-loader] ./node_modules/@types/react-router/index.d.ts:68:21 TS2694: Namespace 'React' has no exported member 'ComponentType'. ERROR in [at-loader] ./node_modules/@types/react-router/index.d.ts:103:48 TS2694: Namespace 'React' has no exported member 'ComponentType'. Thanks for the support.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#483
No description provided.