Had the same error.The issue was with the export default statement. I had called the function rather than exporting it. My error: export default HomePage(); Correct way: export default HomePage;
export default
export default HomePage();
export default HomePage;