Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Error when selecting either option #26

Open
bolohori opened this issue Dec 23, 2019 · 1 comment
Open

Error when selecting either option #26

bolohori opened this issue Dec 23, 2019 · 1 comment
Labels

Comments

@bolohori
Copy link

bolohori commented Dec 23, 2019

Hello. Managed to install the generator, it starts when I use yo @flyntwp/generator, but whenever I select an option, the following error occurs. Tried running it in the theme folder, in the Components folder and in a newly created folder for a Component.

events.js:174
      throw er; // Unhandled 'error' event
      ^
Error: ENOENT: no such file or directory, scandir '{myfolder}\themes\flynt\theme\/Components'
    at Object.readdirSync (fs.js:786:3)
    at module.exports._promptComponentFile (\AppData\Local\Yarn\Data\global\node_modules\@flyntwp\generator-flynt\generators\component\index.js:77:8)
    at prompt.then.answers (AppData\Local\Yarn\Data\global\node_modules\@flyntwp\generator-flynt\generators\component\index.js:43:21)
    at process._tickCallback (internal/process/next_tick.js:68:7)
Emitted 'error' event at:
    at Immediate.setImmediate (\AppData\Local\Yarn\Data\global\node_modules\yeoman-generator\lib\index.js:450:18)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)

Cheers !

@dgrdl
Copy link
Contributor

dgrdl commented Jan 6, 2020

Hey @bolohori,

thank you for creating this issue!

Unfortunately, the Generator is currently not up to date with the latest version of the Flynt Theme. Some of the file contents and formats in components have changed and are not yet reflected in the generator. We are currently working on fixing this.

The issue you posted about seems to be Windows related. We will take a look and most likely push an update together with the adjustments for the latest theme version.

Best Regards

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants