DevExpress / generator-testcafe-reporter

Scaffold out a TestCafe reporter.
https://testcafe.io
MIT License
7 stars 12 forks source link

ENOENT: no such file or directory error when generating a reporter project #19

Open kicr1 opened 1 year ago

kicr1 commented 1 year ago

Hi,

When trying to create a project following the instructions here, I get the following error after entering the setup questions:

node:events:491
      throw er; // Unhandled 'error' event
      ^

Error: ENOENT: no such file or directory, scandir 'C:\xxxxxx\testcafe\my-reporter\_.editorconfig'
    at Object.readdirSync (node:fs:1452:3)
    at exports.readdir (C:\Users\XXXXX\AppData\Roaming\npm\node_modules\generator-testcafe-reporter\node_modules\@mrmlnc\readdir-enhanced\lib\sync\fs.js:18:20)
    at Object.safeCall [as safe] (C:\Users\XXXX\AppData\Roaming\npm\node_modules\generator-testcafe-reporter\node_modules\@mrmlnc\readdir-enhanced\lib\call.js:24:8)
    at DirectoryReader.readNextDirectory (C:\Users\XXXX\AppData\Roaming\npm\node_modules\generator-testcafe-reporter\node_modules\@mrmlnc\readdir-enhanced\lib\directory-reader.js:78:10)
    at DirectoryReader.stream._read (C:\Users\XXXX\AppData\Roaming\npm\node_modules\generator-testcafe-reporter\node_modules\@mrmlnc\readdir-enhanced\lib\directory-reader.js:57:18)
    at Readable.read (node:internal/streams/readable:496:12)
    at readdirSync (C:\Users\XXXX\AppData\Roaming\npm\node_modules\generator-testcafe-reporter\node_modules\@mrmlnc\readdir-enhanced\lib\sync\index.js:27:21)
    at Function.readdirSyncStat (C:\Users\XXXX\AppData\Roaming\npm\node_modules\generator-testcafe-reporter\node_modules\@mrmlnc\readdir-enhanced\lib\index.js:34:10)
    at ReaderSync.dynamicApi (C:\Users\XXXX\AppData\Roaming\npm\node_modules\generator-testcafe-reporter\node_modules\fast-glob\out\providers\reader-sync.js:64:24)
    at ReaderSync.api (C:\Users\XXXX\AppData\Roaming\npm\node_modules\generator-testcafe-reporter\node_modules\fast-glob\out\providers\reader-sync.js:56:25)
Emitted 'error' event on Readable instance at:
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -4058,
  syscall: 'scandir',
  code: 'ENOENT',
  path: 'C:\\xxxxxx\\testcafe\\my-reporter\\_.editorconfig'
}

Answers to reporter set up questions: ? How do you want to name your reporter? - Use suggest value ? What is your GitHub username? kicr1 ? What is the URL of your website? Added site url ? Do you want to implement custom error decorator? (y/N) N

I have installed Yeoman and generator-testcafe-reporter globally using npm as described in the instructions. npm install -g yo npm install -g generator-testcafe-reporter

Versions: Yo - 4.3.1. generator-testcafe-reporter - 2.2.0 node - 18.16.0 npm - 9.5.1 testcafe - 3.1.0-rc.1

Please can you advise on what I am doing incorrectly? Or if this package is no longer supported.

Many thanks

github-actions[bot] commented 1 year ago

We appreciate you taking the time to share the information about this issue. We replicated it, and it is currently in our internal queue. Please note that the research may take time. We'll update this thread once we have news.