I am trying to convert an existing, working JavaScript project to TypeScript, & I specifically want to use the PageObject pattern.
I getting this error when I run np
I was able to reproduce the client.page.signinPage is not a function
error. When I change the page_objects_path
from pages
to built/pages
(because I presume Nightwatch is looking for JavaScript files and not TypeScript files), that error goes away and I get a different error, which I believe is because I don't have the browser driver installed correctly. Try changing the page_objects_path
and hopefully your tests will work.