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

xunit-viewer "10.6.0"-Show Help is not a function #161

Open
J-Ashraf opened this issue Jul 12, 2024 · 2 comments
Open

xunit-viewer "10.6.0"-Show Help is not a function #161

J-Ashraf opened this issue Jul 12, 2024 · 2 comments

Comments

@J-Ashraf
Copy link

By executing npx command "npx xunit-viewer -r "test-reports/report.xml" -o test-reports/axecore-snapshot/storybook-test-report.html" I am getting the following error.:

showHelp()
^

TypeError: showHelp is not a function
at default (file:///C:/dpl3-sb/node_modules/xunit-viewer/xunit-viewer.js:18:5)
at file:///C:/dpl3-sb/node_modules/xunit-viewer/bin/xunit-viewer.js:6:1
at ModuleJob.run (node:internal/modules/esm/module_job:217:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at async loadESM (node:internal/process/esm_loader:34:7)
at async handleMainPromise (node:internal/modules/run_main:66:12)

Node.js v20.9.0

@CarstenLeue
Copy link

The result of the dynamic import in https://github.com/lukejpreston/xunit-viewer/blob/master/xunit-viewer.js#L17 is a promise (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import#return_value)

So the import should be

const { showHelp } = await import('./src/cli/args.js')

@khalilTN
Copy link

khalilTN commented Nov 7, 2024

Hello, any solution for this isue ?

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

3 participants