Open in app
Home
Notifications
Lists
Stories

Write
Srikanth Gurram
Srikanth Gurram

Home

Jun 1, 2021

Cannot use import statement outside a module

In WebdriverIO, if you are using advanced Java script (ES6) features, you will see the following errors 0–0] import LoginPage from ‘../screenobjects/login.page’; [0–0] ^^^^^^ [0–0] [0–0] SyntaxError: Cannot use import statement outside a module To fix the issue, use Babel to compile the JS files. …

Webdriverio

1 min read

Srikanth Gurram

Srikanth Gurram

I am an experienced Automation test engineer

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable