-
Notifications
You must be signed in to change notification settings - Fork 519
Changes required for compiling in strict mode #1098
Comments
Even with strict mode turned off, I get these errors:
|
These errors are independent from strict mode, |
Facing the same problem. These errors arise while creating a new React-Redux Project. |
i don't face any issues while running restore or npm install however, when I run the application these are errors I get.
` |
As I mentioned that has nothing to do with this issue. In #1099 a temporary workaround has been posted:
Afterwards you just have to restore the packages, then the ReactRedux template should work again. |
Thanks @stephtr for the pull request. That's now merged, so this issue is fixed. Also, |
Awesome, thank you! 👍 |
EDIT: This issue has nothing to do with projects generated using the template throwing errors while running webpack. For a solution to that problem see #1099.
Even though I'm not sure if TypeScript's
strict
should be activated by default, I think that the templates should at least compile when a user decides to enable strict mode.At the moment the ReactRedux template throws a few issues:
./ClientApp/boot-client.tsx:5:30 TS7016: Could not find a declaration file for module 'react-hot-loader'.
./ClientApp/configureStore.ts:15:51 TS7006: Parameter 'f' implicitly has an 'any' type.
./ClientApp/configureStore.ts:33:27 TS7006: Parameter 'allReducers' implicitly has an 'any' type.
./ClientApp/store/WeatherForecasts.ts:63:7 TS2322: Type '{ startDateIndex: null; forecasts: never[]; isLoading: false; }' is not assignable to type 'WeatherForecastsState'. Types of property 'startDateIndex' are incompatible. Type 'null' is not assignable to type 'number'.
All of these issues can be fixed with just small modifications. Should I create a PR?
The text was updated successfully, but these errors were encountered: