-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Error: "Expected 4 type arguments, but got 1" #136
Comments
An update (4.0.0) of Redux was released today, are you by chance already using that? The createStore signature has changed from the last released version 3.7.2. on 3.7.2 the createStore signature is this:
whereas on 4.0.0 it now is
|
@creambyemute Just looked and I am using 4.0.0. Good catch, thanks for helping out so quickly! |
Now I know redux 4.0.0 caused the issue. How can I fix it? How to change the codes at sr/index.tsx? |
@etlolap Not sure if this is the solution to it, but this worked for me I imported
and used like below
|
Thanks very much. I fixed issue quickly. |
@haani104 This does not work for me. Error message as follows:
|
The following also works for me:
Guess I'll have to replace the null's with something as soon as I start to use middleware |
I still get an error:
Error:
When I hover
Signatures:
Dependencies:
|
Why was this issue closed if the tutorial still uses the outdated syntax? |
If don't know what the type is, try to describe it as 'any' |
@mehmetnyarar did you find a solution? I have the same problem. |
@eberkund @mehmetnyarar |
It's been really a long time and i don't use this boilerplate in my projects anymore. Creating a React/TypeScript project is very easy now and I don't have any type problem with Redux as well ) |
I followed along with all of the steps in the README. After following the steps in "Creating a store" The app fails to compile and provides an error:
"my-app/src/index.tsx
(12,27): Expected 4 type arguments, but got 1."
I cloned the master branch from this repo and compared my code to yours and even went as far as copying/pasting your code over mine to make sure I wasnt missing anything. None of that fixed the error. Please advise
The text was updated successfully, but these errors were encountered: