Skip to content

TypeError: showHelp is not a function #20

@steve-taylor

Description

@steve-taylor
file:///usr/local/lib/node_modules/xunit-viewer/xunit-viewer.js:18
    showHelp()
    ^

TypeError: showHelp is not a function
    at default (file:///usr/local/lib/node_modules/xunit-viewer/xunit-viewer.js:18:5)
    at file:///usr/local/lib/node_modules/xunit-viewer/bin/xunit-viewer.js:6:1
    at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:323:24)
    at async loadESM (node:internal/process/esm_loader:28:7)
    at async handleMainPromise (node:internal/modules/run_main:[11](https://github.com/fsa-streamotion/streamotion-web-flash-widgets/actions/runs/8556635480/job/23446947863?pr=623#step:19:12)3:12)

This is caused by xunit-viewer's incorrect usage of a dynamic import, trying to destructure the promise itself instead of the module it resolves. This has been broken in xunit-viewer since version 8.0.0, which was released 9 months ago.

I created a pull request to fix xunit-viewer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions