codeceptjs / helper

Base class for CodeceptJS helpers
MIT License
1 stars 4 forks source link

Class extends value #<Object> is not a constructor or null #7

Closed philkas closed 8 months ago

philkas commented 8 months ago

After updating to Version 2.0.2 I get this kind of error when executing my tests: Class extends value #<Object> is not a constructor or null

After a lot of debugging i came to the conclusion, that const Helper = require('@codeceptjs/helper') does not work anymore, but i have to change it to const Helper = require('@codeceptjs/helper').default

For me no problem, but in my opinion it should not be an version patch update, but more a major update because it breaks things. Also the documentation should be updated.

kobenguyent commented 8 months ago

Sorry for the inconvenience caused. Please try with latest update!

philkas commented 8 months ago

Thanks for the quick response and fixing the problem. Seems to be ok right now.