Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialtae shik hwang
11,827 PointsOccurred an SyntaxError..
When I run the Initial state of project of your file, Below SyntaxError is occurred and can't run the project.
chunk {0} bundle.js (main) 226 kB + 77 hidden modules
ERROR in ./src/App.js Module build failed: SyntaxError: Unexpected token (39:6)
37 | render() {
38 | let guests = this.state.names.map((name, i) => (
39 | <li key={name.name}> | ^ 40 | {name.name} 41 | <button onClick={this.handleRemove.bind(this, i)}>Remove</button> 42 | </li>
@ multi main webpack: Failed to compile.
3 Answers
Tom Geraghty
24,174 PointsDid you install all of the project dependencies as well? After you download the project files, unzip them, and navigate to the project folder, you have to install all dependencies by typing
npm install
in your terminal window.
Thoriq Faizal
iOS Development Techdegree Student 134 PointsHey i got stuck in here too, i already npm install and it still can't run, i think the course not up to date
shu Chan
2,951 PointsSOLUTION: Follow the video instructions and install react addon transition group BEFORE running the app or it causes a syntax error
tae shik hwang
11,827 Pointstae shik hwang
11,827 PointsAfter I installed react-addons-css-transition-group, also the same error is happened.. How can I solve this problem?
ERROR in ./src/App.js Module build failed: SyntaxError: Unexpected token (40:6)
38 | render() {
39 | let guests = this.state.names.map((name, i) => (
@ multi main webpack: Failed to compile.