Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kicr1 opened this issue Jul 31, 2023 · 1 comment
Open

Comments

@kicr1
Copy link

kicr1 commented Jul 31, 2023

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
Copy link

github-actions bot commented Aug 1, 2023

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.

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

No branches or pull requests

2 participants