Describe the bug
I am sorry, but following error appears after upgrading to wingsuit v.1.0.0-beta.30. Downgrading back to beta.29 fixes it. The error may not appear when choosing other options during the setup process (e.g. it did not appear when I selected a presentation template).
To Reproduce
Steps to reproduce the behavior:
Upgrade to wingsuit v.1.0.0-beta.30
Run yarn ws generate-component
Run through the setup process (storybook, components, wingsuit component(ui pattern), no css, no js, automatic mdx)
See error:
pascal@Pascals-iMac tg-storybook % yarn ws generate-component
yarn run v1.22.4
$ /Users/pascal/webdev/sites/tg-storybook/node_modules/.bin/ws generate-component
Hi! This will help you build a component folder with assets. Templates for this are in: node_modules/@wingsuit-designsystem/cli/dist/generators/component
? Which app should be used? storybook
? Where would you like this new component? 03-components
? What shall we name it? test
? What type of component would you like to create? Wingsuit component (UI Pattern)
? Do you need a CSS file? No
? Do you need an javascript attach event handler? No
? How do you want to document your component? Automatic
Error while creating component. /Users/pascal/webdev/sites/tg-storybook/node_modules/@wingsuit-designsystem/cli/dist/generators/component/templates/ds/base/index.js.ejs:5
3| */
4| <% if (useCss) { %>import './<%= name %>.css';<% } %>
>> 5| <% if (useScss) { %>import './<%= name %>.scss';<% } %><% if (useJs) { %>
6| import './<%= name %>.behavior';
7| <% } %>
useScss is not defined
✨ Done in 10.34s.
**Expected behavior**
A blank pattern should be generated
Describe the bug I am sorry, but following error appears after upgrading to wingsuit
v.1.0.0-beta.30
. Downgrading back tobeta.29
fixes it. The error may not appear when choosing other options during the setup process (e.g. it did not appear when I selected a presentation template).To Reproduce Steps to reproduce the behavior:
v.1.0.0-beta.30
yarn ws generate-component
useScss is not defined ✨ Done in 10.34s.