When generating a new project with the react redux template (project.json based) I get multiple errors while the generator is generating the project (it looks like the webpack step)
ERROR in C:tempaspnetnode_modules@[email protected]
(7,21): error TS2300: Duplicate identifier 'React'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2743,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'svg' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2745,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'circle' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2746,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'clipPath' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2747,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'defs' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2748,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'desc' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2749,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'ellipse' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2750,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feBlend' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2751,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feColorMatrix' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2752,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feComponentTransfer' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2753,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feComposite' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2754,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feConvolveMatrix' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2755,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feDiffuseLighting' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2756,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feDisplacementMap' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2757,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feDistantLight' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2758,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feFlood' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2759,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feFuncA' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2760,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feFuncB' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2761,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feFuncG' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2762,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feFuncR' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2763,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feGaussianBlur' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2764,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feImage' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2765,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feMerge' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2766,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feMergeNode' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2767,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feMorphology' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2768,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feOffset' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2769,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'fePointLight' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2770,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feSpecularLighting' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2771,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feSpotLight' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2772,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feTile' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2773,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feTurbulence' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2774,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'filter' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2775,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'foreignObject' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2776,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'g' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2777,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'image' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2778,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'line' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2779,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'linearGradient' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2780,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'marker' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2781,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'mask' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2782,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'metadata' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2783,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'path' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2784,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'pattern' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2785,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'polygon' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2786,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'polyline' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2787,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'radialGradient' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2788,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'rect' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2789,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'stop' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2790,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'switch' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2791,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'symbol' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2792,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'text' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2793,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'textPath' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2794,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'tspan' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2795,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'use' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2796,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'view' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(7,21): error TS2300: Duplicate identifier 'React'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2743,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'svg' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2745,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'circle' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2746,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'clipPath' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2747,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'defs' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2748,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'desc' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2749,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'ellipse' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2750,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feBlend' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2751,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feColorMatrix' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2752,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feComponentTransfer' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2753,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feComposite' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2754,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feConvolveMatrix' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2755,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feDiffuseLighting' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2756,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feDisplacementMap' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2757,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feDistantLight' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2758,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feFlood' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2759,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feFuncA' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2760,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feFuncB' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2761,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feFuncG' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2762,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feFuncR' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2763,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feGaussianBlur' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2764,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feImage' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2765,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feMerge' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2766,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feMergeNode' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2767,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feMorphology' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2768,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feOffset' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2769,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'fePointLight' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2770,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feSpecularLighting' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2771,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feSpotLight' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2772,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feTile' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2773,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feTurbulence' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2774,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'filter' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2775,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'foreignObject' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2776,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'g' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2777,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'image' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2778,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'line' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2779,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'linearGradient' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2780,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'marker' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2781,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'mask' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2782,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'metadata' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2783,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'path' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2784,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'pattern' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2785,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'polygon' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2786,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'polyline' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2787,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'radialGradient' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2788,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'rect' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2789,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'stop' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2790,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'switch' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2791,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'symbol' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2792,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'text' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2793,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'textPath' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2794,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'tspan' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2795,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'use' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-router\node_modules\@types\react\index.d.ts
(2796,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'view' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(7,21): error TS2300: Duplicate identifier 'React'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2743,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'svg' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2745,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'circle' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2746,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'clipPath' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2747,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'defs' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2748,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'desc' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2749,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'ellipse' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2750,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feBlend' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2751,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feColorMatrix' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2752,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feComponentTransfer' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2753,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feComposite' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2754,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feConvolveMatrix' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2755,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feDiffuseLighting' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2756,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feDisplacementMap' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2757,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feDistantLight' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2758,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feFlood' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2759,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feFuncA' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2760,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feFuncB' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2761,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feFuncG' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2762,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feFuncR' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2763,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feGaussianBlur' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2764,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feImage' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2765,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feMerge' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2766,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feMergeNode' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2767,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feMorphology' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2768,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feOffset' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2769,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'fePointLight' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2770,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feSpecularLighting' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2771,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feSpotLight' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2772,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feTile' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2773,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feTurbulence' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2774,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'filter' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2775,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'foreignObject' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2776,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'g' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2777,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'image' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2778,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'line' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2779,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'linearGradient' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2780,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'marker' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2781,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'mask' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2782,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'metadata' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2783,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'path' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2784,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'pattern' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2785,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'polygon' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2786,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'polyline' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2787,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'radialGradient' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2788,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'rect' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2789,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'stop' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2790,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'switch' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2791,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'symbol' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2792,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'text' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2793,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'textPath' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2794,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'tspan' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2795,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'use' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-dom\node_modules\@types\react\index.d.ts
(2796,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'view' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react\index.d.ts
(7,21): error TS2300: Duplicate identifier 'React'.
ERROR in ./ClientApp/store/WeatherForecasts.ts
(2,27): error TS2305: Module '"C:/temp/aspnet/node_modules/@types/redux/index"' has no exported member 'ThunkAction'.
ERROR in ./ClientApp/store/Counter.ts
(1,27): error TS2305: Module '"C:/temp/aspnet/node_modules/@types/redux/index"' has no exported member 'ThunkAction'.
Child extract-text-webpack-plugin:
+ 2 hidden modules
Child
Hash: e51fe821db9634cdad16
Version: webpack 1.14.0
Time: 10840ms
Asset Size Chunks Chunk Names
main-server.js 86.3 kB 0 [emitted] main-server
+ 21 hidden modules
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(7,21): error TS2300: Duplicate identifier 'React'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2743,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'svg' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2745,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'circle' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2746,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'clipPath' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2747,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'defs' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2748,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'desc' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2749,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'ellipse' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2750,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feBlend' must be of type 'SVGProps', but here has type 'SVGProps'.
ERROR in C:\temp\aspnet\node_modules\@types\react-redux\node_modules\@types\react\index.d.ts
(2751,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'feColorMatrix' must be of type 'SVGProps', but here has type 'SVGProps'.
I'm getting this as well, has something changed with the typings definitions?
Possibly related to 582- React with Redux show many errors when creating ?
I have just updated my Yo Generators, and generated a new React + Redux project (xproj).
I now get the following:
Version: webpack 1.14.0
Child
Hash: 84c5ac32ad6898ab6696
Version: webpack 1.14.0
Time: 21896ms
Asset Size Chunks Chunk Names
main-client.js 43.4 kB 0 [emitted] main-client
site.css 1.56 kB 0 [emitted] main-client
main-client.js.map 30.3 kB 0 [emitted] main-client
site.css.map 85 bytes 0 [emitted] main-client
+ 23 hidden modules
ERROR in ./ClientApp/store/WeatherForecasts.ts
(2,27): error TS2305: Module '"C:/Code/VSCODE/test/node_modules/@types/redux/index"' has no exported member 'ThunkAction'.
ERROR in ./ClientApp/store/Counter.ts
(1,27): error TS2305: Module '"C:/Code/VSCODE/test/node_modules/@types/redux/index"' has no exported member 'ThunkAction'.
Child extract-text-webpack-plugin:
+ 2 hidden modules
Child
Hash: 4d9d6072d4a11dab8682
Version: webpack 1.14.0
Time: 21859ms
Asset Size Chunks Chunk Names
main-server.js 86.3 kB 0 [emitted] main-server
+ 21 hidden modules
ERROR in ./ClientApp/store/WeatherForecasts.ts
(2,27): error TS2305: Module '"C:/Code/VSCODE/test/node_modules/@types/redux/index"' has no exported member 'ThunkAction'.
ERROR in ./ClientApp/store/Counter.ts
(1,27): error TS2305: Module '"C:/Code/VSCODE/test/node_modules/@types/redux/index"' has no exported member 'ThunkAction'.
It looks like the latest fix for this might not have made it into the latest generator, try adding these updates to your template and it should fix it:
https://github.com/aspnet/JavaScriptServices/commit/f8714e9653bd654177233af85f1a57da2af0f9b9
The tsconfig paths part is important as well:
"paths": {
// Fix "Duplicate identifier" errors caused by multiple dependencies fetching their own copies of type definitions.
// We tell TypeScript which type definitions module to treat as the canonical one (instead of combining all of them).
"history": ["./node_modules/@types/history/index"],
"redux": ["./node_modules/@types/redux/index"],
"react": ["./node_modules/@types/react/index"]
}
Hope that helps!
@MarkPieszak
Hi Mark, some more information, hopefully of use:
Yesterday (16-01-2017) I updated to the latest Generator, copied, the tsconfig.json and package.json from commit f8714e9. I can confirm that the paths fix you mention IS included in the tsconfig.json.
Yesterday this worked - hooray! and I zipped up a copy of the Generator as I was finally able to get back to work ;)
Today, I updated to the latest Generator, to see if it had been fixed, and I received the error messages above.
Now, this might be the clue - I then took a copy of my zipped Generator that was working yesterday, compared it to the latest I had downloaded, and they are identical. And of course both versions give the same error (see below - output is from my Generator that worked yesterday), so perhaps yet another NPM package has been updated / broken w.r.t type info?:
I am using VSCode, and I had disabled an extension that automatically downloads missing types last week; TypeScript is proving more of a time waster than a benefit recently. I deleted the node_modules directory in my projects, uninstalled and reinstalled the Generator.. tried command line only ... no joy.
--
Version: webpack 1.14.0
Child
Hash: 429c1e9765223569b3a7
Version: webpack 1.14.0
Time: 20994ms
Asset Size Chunks Chunk Names
main-client.js 43.4 kB 0 [emitted] main-client
site.css 1.56 kB 0 [emitted] main-client
main-client.js.map 30.3 kB 0 [emitted] main-client
site.css.map 85 bytes 0 [emitted] main-client
+ 23 hidden modules
ERROR in ./ClientApp/store/WeatherForecasts.ts
(2,27): error TS2305: Module '"C:/Code/VSCODE/test2/node_modules/@types/redux/index"' has no exported member 'ThunkAction'.
ERROR in ./ClientApp/store/Counter.ts
(1,27): error TS2305: Module '"C:/Code/VSCODE/test2/node_modules/@types/redux/index"' has no exported member 'ThunkAction'.
Child extract-text-webpack-plugin:
+ 2 hidden modules
Child
Hash: 49d643dffde0d18fd13f
Version: webpack 1.14.0
Time: 20941ms
Asset Size Chunks Chunk Names
main-server.js 86.4 kB 0 [emitted] main-server
+ 21 hidden modules
ERROR in ./ClientApp/store/WeatherForecasts.ts
(2,27): error TS2305: Module '"C:/Code/VSCODE/test2/node_modules/@types/redux/index"' has no exported member 'ThunkAction'.
ERROR in ./ClientApp/store/Counter.ts
(1,27): error TS2305: Module '"C:/Code/VSCODE/test2/node_modules/@types/redux/index"' has no exported member 'ThunkAction'.
Ok, in my case,redux-thunk had been updated to version 2.2.0, which must have been released today.
'Fixing' the version to 2.1.0 resolves my particular issues, and no errors are displayed.
Any suggestions how we can make this combination of many npm modules less fragile?
I believe this is exactly the kind of scenario that motivated the team at Facebook to create Yarn.
We could add a Yarn lock file, which "pins" package versions down to a specific version. Of course, you'd have to be a Yarn user to get the benefits, and I'm not sure it's a trivial thing to replace npm with another package manager in Visual Studio Tooling - I've never added my own external tool before.
I might be over thinking this of course. A potential fix might be to get rid of the "^" carrot in dependencies...
@KraigWalker
Yep, I was thinking of just removing the "^". I can then at least commit a working build, and then test for new versions as and when I need them. Or use "~" to only support minor version variations.
In this case, VSCode is telling me the latest redux-thunk is 2.2.0, but the latest "@types/redux-thunk": "^2.1.28" is actually 2.1.0.
Haven't looked at Yarn yet - but even with Yarn it seems like we would essentially be doing the same thing anyway...?
The updated generator-aspnetcore-spa version 0.7.4, which is now published, produces updated projects that fixes these React/Redux dependency issues.
'Fixing' the version to 2.1.0 resolves my particular issues, and no errors are displayed.
Turns out we don't need @types/redux-thunk at all, so the new generator removes it and the problem goes away. See here for how to update your existing projects: https://github.com/aspnet/JavaScriptServices/commit/867d070263e287b55842b5c70229952ea5552c95
Any suggestions how we can make this combination of many npm modules less fragile?
Make your voice heard in the React community. Make sure people know that you actually care about TypeScript support, and hence they shouldn't put obviously breaking changes (like the @types/redux-thunk 2.2.0 one you reported) into minor version updates. Ask them to take TypeScript more seriously.
I believe this is exactly the kind of scenario that motivated the team at Facebook to create Yarn.
Yarn is just a fast way of fetching dependencies; it doesn't change the fact that breaking changes break things :)
We could add a Yarn lock file, which "pins" package versions down to a specific version.
Pinning to specific dependency versions does kind of help you avoid that sort of pain, but gives you a different pain which is that you're stuck on old versions of things by default.
@SteveSandersonMS
Thanks for the prompt fix Steve - all tested and working. Will raise the redux-thunk issue with the React / Redux folks as a heads up re: Typescript as you suggest.
For me add @types/history": "^2.0.0" and reinstall all node_modules solves the problem.
thanks @SteveSandersonMS! it works for me too.
I added @types/history": "3.2.0 and works fine.
Most helpful comment
The updated
generator-aspnetcore-spaversion 0.7.4, which is now published, produces updated projects that fixes these React/Redux dependency issues.Turns out we don't need
@types/redux-thunkat all, so the new generator removes it and the problem goes away. See here for how to update your existing projects: https://github.com/aspnet/JavaScriptServices/commit/867d070263e287b55842b5c70229952ea5552c95Make your voice heard in the React community. Make sure people know that you actually care about TypeScript support, and hence they shouldn't put obviously breaking changes (like the
@types/redux-thunk2.2.0 one you reported) into minor version updates. Ask them to take TypeScript more seriously.Yarn is just a fast way of fetching dependencies; it doesn't change the fact that breaking changes break things :)
Pinning to specific dependency versions does kind of help you avoid that sort of pain, but gives you a different pain which is that you're stuck on old versions of things by default.