React development: Invalid number of arguments on a react Component class?

This started happening very recently... here's a snap of my class declaration:

message on the underlined  props in `super` says:

`Invalid number of arguments, expected 0`

Nothing in the version of react I'm using would indicate that this is incorrect, in fact the application will crash if not provided. Any idea (ha!) what's going on here?

6 comments
Comment actions Permalink

please ctrl+click on super() - what declaration are you taken to? What react version do you work with?

0
Comment actions Permalink

Well interesting... as the class is currently written, as shown above, the super declaration resolves to here on a ctrl+click:

(recompose) but, if I explicitly do this:

IDEA does nothing when I attempt to ctrl+click on super, but warning/error goes away.

react version is 16.1.1

Someone must have recently installed recompose. Not sure if this is expected behavior or not.

 

0
Comment actions Permalink

Try excluding recompose/dist from indexing (by marking it excluded) - does it help?

0
Comment actions Permalink

I don't see where I would mark this as excluded...

0
Comment actions Permalink

This likely means that they are configuraed as libraries... try marking Recompose.cjs.js.flow as plain text then

0
Comment actions Permalink

well, that corrected it, but doesn't seem durable? restarting the workspace it returns. shouldn't this be added to my idea settings?

0

Please sign in to leave a comment.