freeCodeCamp / league-for-good

An open source sports league management tool
BSD 3-Clause "New" or "Revised" License
163 stars 106 forks source link

"Failed to compile" - Can't resolve './CreateLeagueButton.jsx' #94

Open emjayess opened 6 years ago

emjayess commented 6 years ago

Hi. I'm brand new to the project, or brand new to wanting to explore the project; but I cloned it yesterday, and failed to get it up and running...

Steps I followed:

Asciicast of terminal output:

IsaacRaymond commented 6 years ago

Hey!

You'll get a few of these errors I think - Just go into your files and change all import statements to "CreateLeagueButton.js". For example: components/create_league/CreateLeagueSelector.jsx, should now import "CreateLeagueButton.js" instead of jsx

Just a small glitch that was recently pushed

IsaacRaymond commented 6 years ago

If you haven't done so already, join us on Slack! (Check the readme for the link)

emjayess commented 6 years ago

You'll get a few of these errors I think - Just go into your files and change all import statements to "CreateLeagueButton.js". For example: components/create_league/CreateLeagueSelector.jsx, should now import "CreateLeagueButton.js" instead of jsx

Indeed, I did this just before popping back in here and seeing your matching advice...

--- a/client/src/components/create_league/CreateLeagueSelector.jsx
+++ b/client/src/components/create_league/CreateLeagueSelector.jsx
@@ -5,7 +5,7 @@ import {
        CardActions,
        CardTitle
 } from 'material-ui/Card';
-import CreateLeagueButton from './CreateLeagueButton.jsx';
+import CreateLeagueButton from './CreateLeagueButton';

Aaannd, that works 👍 it just caught me off guard, like "why would I alone be experiencing this... was I missing something in the build toolchain?"

l4g-running

domwakeling commented 6 years ago

Crashing error caused by file extension resolved in #95