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

Bug: TypeError: allureJsCommons.AllureConfig is not a constructor #102

Closed
vinceis1337 opened this issue Aug 19, 2021 · 2 comments · Fixed by #108
Closed

Bug: TypeError: allureJsCommons.AllureConfig is not a constructor #102

vinceis1337 opened this issue Aug 19, 2021 · 2 comments · Fixed by #108
Assignees
Labels
bug Something isn't working

Comments

@vinceis1337
Copy link

Describe the bug
testcafe-reporter-allure is resolving allure-js-commons to version 2.0.0.beta-11 which was released 12 days ago. This causes an error on run that says TypeError: allureJsCommons.AllureConfig is not a constructor. The underlying cause is the dist/index.js file no longer has the lines

var AllureConfig_1 = require("./src/AllureConfig");
Object.defineProperty(exports, "AllureConfig", { enumerable: true, get: function () { return AllureConfig_1.AllureConfig; } });

To Reproduce
Steps to reproduce the behavior:
npm install any project with a dependency on testcafe-reporter-allure
make sure it resolves allure-js-commons to 2.0.0.beta-11 (not 2.0.0.beta-9)
attempt to run testcafe using this framework
get error

Expected behavior
A clear and concise description of what you expected to happen.
using this framework should not result in an error

@vinceis1337 vinceis1337 added the bug Something isn't working label Aug 19, 2021
@vinceis1337
Copy link
Author

it could be argued that this is a semantic versioning issue in allure-js-commons. I will crosslink this issue in an issue opened on their side.

@lpelypenko
Copy link
Contributor

lpelypenko commented Sep 1, 2021

@vinceis1337 currently this package depends on:

"allure-js-commons": "^2.0.0-beta.8",

https://github.com/isaaceindhoven/testcafe-reporter-allure/blob/v2.1.0/package.json#L44

The error you mentioned is also reproducible in project that uses current latest version of "@isaac.frontend/testcafe-reporter-allure@2.1.0".

Is there any solution you can suggest, e.g downgrading to specific allure-js-commons version that you know will not case mentioned TypeError?

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