scalable-react / scalable-react-boilerplate

:star: Scalable feature-first React micro-framework made for Udacity Alumni collaborative projects
https://scalable-react-boilerplate.herokuapp.com/
MIT License
259 stars 60 forks source link

Error when trying to generate a component that is stateless function #75

Closed mwolson closed 7 years ago

mwolson commented 7 years ago
$ npm run generate

> scalable-react-boilerplate@1.1.0 generate /Users/mwolson/devel/interview/scalable-react-boilerplate
> plop --plopfile config/generators/index.js

? [PLOP] Please choose a generator. component - Add a component to the app
? [COMPONENT] Select the type of component Stateless Function
? [COMPONENT] What is the name of the component? Header
? [COMPONENT] Should the component use SCSS Modules? No
? [COMPONENT] Should the component use styled components? No
? [COMPONENT] Should the component have FlowTypes? No
? [COMPONENT] Should the component have PropTypes? No
? [COMPONENT] Would you like to import any commonly used grommet components? Heading, Header
[FAILED] add /Users/mwolson/devel/interview/scalable-react-boilerplate/app/src/components/Header/index.js Parse error on line 38:
...    </Box>  );}{{else}}function {{
------------------^
Expecting 'OPEN_ENDBLOCK', got 'INVERSE'

It looks like the cause is the lack of support for {{else if ...}} blocks prior to handlebars v3.0.0. Based on yarn.lock, seems like plop is using handlebars 2.0.0. Patch incoming shortly to fix.