.babelrc required
Hi Richard, wasn't sure the best way to reach you, but I was working through your tutorial https://underthehood.myob.com/changing-of-the-guard-in-web-technologies/ and kept getting a build error. I diffed my work vs. what you committed to this repo, and it looks like the .babelrc file is required. You can repro by deleting the .babelrc and trying to build. You might want to update the tutorial to mention it. Cheers, and thanks for the helpful tutorial
Spot on. Several people mentioned it recently.The post forgot to talk about the .babelrc file. I am working on more advanced topics at the moment for forthcoming posts but I will take your advice and amend the original tutorial soon. Thanks.
Keeping this open until tutorial is updated.
Same here. Worked fine after adding the .babelrc file.
Thanks for this great tutorial by the way :)
Encountered this same problem and was able to resolve using the above. For reference, the error I got was
ERROR in ./src/components/example.js
Module build failed: SyntaxError: /Users/aaron/projects/webpacktest/src/components/example.js: Unexpected token (6:0)
4 | import DummyActions from 'actions/dummyActions';
5 |
> 6 | @connectToStores
| ^
7 | class Example extends React.Component {