frankcollins3 / PHPokedex

react concepts
0 stars 0 forks source link

function has no call signatures and I can't invoke it [1:51pm] #4

Closed frankcollins3 closed 1 year ago

frankcollins3 commented 1 year ago

part of this issue coming to life is that it comes from working through: issue #2

Screen Shot 2023-03-13 at 1 50 21 PM

Screen Shot 2023-03-13 at 1 50 27 PM

Screen Shot 2023-03-13 at 1 50 36 PM

frankcollins3 commented 1 year ago

https://stackoverflow.com/questions/39691889/error-cannot-invoke-an-expression-whose-type-lacks-a-call-signature

I see a few responses from this SO that indicate to me the problem could be:

:any

somewhere.

frankcollins3 commented 1 year ago

Screen Shot 2023-03-13 at 1 54 14 PM

[1:54pm]

frankcollins3 commented 1 year ago

Screen Shot 2023-03-13 at 1 57 16 PM

Screen Shot 2023-03-13 at 1 56 54 PM

I got rid of the alias and commented out the state so that: 1) the global [allpokemon, setAllpokemon] state being commented out wouldn't return logs when I logged the func

Module { esModule: true } I didn't know if Next returned this back if this were to be a new version of next and it got an update

@utility/allpokemon I also didn't know if my import which was created with a specified shortcut in the tsconfig.json contributed to problem.

I checked the logs and now it looks like a normal function

proposed approach:

change the name of the function from the utility folder

[2:00pm]