当执行npm start 后能启动;但是在打开页面的时候会提示:
UnhandledPromiseRejectionWarning: TypeError: text.trimEnd is not a function

I'm having the same issue when starting a new project, both on Typescript and JS versions following the "Getting started" documentation.
If I start a v3 project it works fine.
https://github.com/wswebcreation/wdio-cucumberjs-json-reporter/issues/14#issuecomment-528788007
Please upgrade node version greater than 10.x
Thanks for the above answer. it did!
Most helpful comment
https://github.com/wswebcreation/wdio-cucumberjs-json-reporter/issues/14#issuecomment-528788007
Please upgrade node version greater than 10.x