-
Notifications
You must be signed in to change notification settings - Fork 5
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
TypeError: Class constructor Formatter cannot be invoked without 'new' #4
Comments
@neerjain I need some additional information:
|
Please find below teh details:
`const CucumberJSAllureFormatter = require("cucumberjs-allure2-reporter").CucumberJSAllureFormatter; class Reporter extends CucumberJSAllureFormatter { module.exports = Reporter;` Stack Trace: [14:21:54] E/launcher - Error: TypeError: Class constructor Formatter cannot be invoked without 'new' Node version: 8.11.3 I am running this through protractor conf.js file cucumberOpts: {
|
@neerjain After some experiments, it looks like there were some incompatible changes in Cucumber version 5. |
@neerjain possibly you need to fix tsconfig.json, here working example https://github.com/sseliverstov/allurejs-examples/tree/master/cucumber-js5-allure2. Also we copy @korobochka 's code to our organization https://github.com/allure-framework/allure-js. |
@korobochka can you release a new version of |
@fescobar : I am not maintaining this project anymore (everything moved to main Allure repo, but that version is not released yet). |
@korobochka I'll try to create the PR. What main Allure repo? can you share the link? |
@fescobar |
Hi,
I have written the code mentioned in READme in both syntax ES6 and non ES6 but it is throwing below error:
TypeError: Class constructor Formatter cannot be invoked without 'new'
The text was updated successfully, but these errors were encountered: