Closed rostgoat closed 6 years ago
So I started having this same issue in vscode.. I had to define my files as JavaScript React format. Regular javascript formatting was making everything go all wonky..
could you provide the code you used?
That was an IDE specific setting. Curious, when you started the project in webstorm, did you start it as a blank project? Or did you choose the react project template?
I actually started it in Atom but switched to webstorm shortly after. Once I opened and ran the create-react-app
i was prompted my webstorm to allow it to work with React libraries to which I said yes.
I actually moved mine from webstorm to vs code. I'm not quite sure how to define jsx as the file format in webstorm. Since it's still javascript.
oh gotcha.
Somehow it magically started working now after I imported that import
statement above. Not exactly sure what the issue was there. this.props.fetchUser();
is still unresolved but seems to work without errors.
Closing issue.
while working though the tutorial, fetchUser() is labelled as undefined in webstorms even when
import {fetchUser} from "../actions";
is declared.any fixes?