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

Path contains invalid characters #480

Open
evertondanilo opened this issue Jul 7, 2023 · 0 comments
Open

Path contains invalid characters #480

evertondanilo opened this issue Jul 7, 2023 · 0 comments

Comments

@evertondanilo
Copy link

evertondanilo commented Jul 7, 2023

  • Version: Node 16.15.1
  • Platform: 64-bit (Windows)

Have you seen this error before?
Path contains invalid characters

Looks like the path is being appended twice.
C:\code\repo\FR.Web.front\frontApp\coverage_cucumber\lcov-report\frontApp\Features\StepDefinitions\C:\code\repo\FR.Web.front\frontApp\Features\StepDefinitions

Error: Path contains invalid characters: C:\code\repo\FR.Web.front\frontApp\coverage_cucumber\lcov-report\frontApp\Features\StepDefinitions\C:\code\repo\FR.Web.front\frontApp\Features\StepDefinitions
    at checkPath (C:\code\repo\FR.Web.front\frontApp\node_modules\c8\node_modules\make-dir\index.js:16:18)
    at AsyncFunction.module.exports.sync (C:\code\repo\FR.Web.front\frontApp\node_modules\c8\node_modules\make-dir\index.js:108:2)
    at FileWriter.writeFile (C:\code\repo\FR.Web.front\frontApp\node_modules\c8\node_modules\istanbul-lib-report\lib\file-writer.js:184:16)
    at HtmlReport.onSummary (C:\code\repo\FR.Web.front\frontApp\node_modules\c8\node_modules\istanbul-reports\lib\html\index.js:364:44)
    at LcovReport.<computed> [as onSummary] (C:\code\repo\FR.Web.front\frontApp\node_modules\c8\node_modules\istanbul-reports\lib\lcov\index.js:28:23)
    at Visitor.value (C:\code\repo\FR.Web.front\frontApp\node_modules\c8\node_modules\istanbul-lib-report\lib\tree.js:38:38)
    at ReportNode.visit (C:\code\repo\FR.Web.front\frontApp\node_modules\c8\node_modules\istanbul-lib-report\lib\tree.js:86:21)
    at C:\code\repo\FR.Web.front\frontApp\node_modules\c8\node_modules\istanbul-lib-report\lib\tree.js:92:19
    at Array.forEach (<anonymous>)
    at ReportNode.visit (C:\code\repo\FR.Web.front\frontApp\node_modules\c8\node_modules\istanbul-lib-report\lib\tree.js:91:28)

This started to happen after we did npm audit fix and some babel dependencies were bumped.

Version that breaks C8: (package.json)

 "dependencies": {
    "@babel/core": "7.21.0", and forwards

Working version with C8:

  "dependencies": {
    "@babel/core": "7.20.12",

I have created a repo that you can run and see the error:
https://github.com/evertondanilo/cucumber-react-issue

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

No branches or pull requests

1 participant