'Cannot read property 'CUCUMBER_PUBLISH_ENABLED' of undefined

I have the error Cannot read property 'CUCUMBER_PUBLISH_ENABLED' of undefined when trying to execute my e2e test using cucumber in my angular project.
Please does someone already face it ?

I use angular 10 and the following versions of cucumber and protractor:
"cucumber": "^7.0.0-rc.0",
"protractor": "^7.0.0",
"protractor-cucumber-framework": "^8.2.11"



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source