react-boilerplate / react-boilerplate-cra-template

:fire: Setup Create React App with React Boilerplate. Highly scalable & Best DX & Performance Focused & Best practices.
https://react-boilerplate.github.io/react-boilerplate-cra-template/
MIT License
1.87k stars 393 forks source link

'yarn generate' does not detect folders when asking for component creation location. #136

Closed thedanielmark closed 3 years ago

thedanielmark commented 3 years ago

Description

When running the 'yarn generate' command, the generator does not detect folders and ask where to put the newly generated components. Testing the generator seems to work and manually specifying where to store the component also works but in more complex use cases the folder suggestions feature would be absolutely essential.

Steps to reproduce

  1. Install the boilerplate as usual.
  2. Clean the setup by running 'yarn run cleanAndSetup'.
  3. Run 'yarn generate'.
  4. Select component > type component name > hit enter.
  5. 'Pages' and 'Components' directories do not show up on the list below.

Expected behaviour The 'pages' and 'components' folders were supposed to be listed as suggestions when running the generate command. image

Screenshots image

Versions

Can-Sahin commented 3 years ago

Thanks for the heads up. You should downgrade inquirer package to 7.3.3 for a quick fix. I checked their changelog and shows no breaking change however two different plugins for the same job are not working at the moment. I will downgrade it as well until the plugins solve the issue

thedanielmark commented 3 years ago

Thanks for the tip! I'll downgrade them manually for now and wait for the update.