Skip to content

Transformation error (Cannot read properties of undefined (reading 'map')) #75

@vidyashv-carbon

Description

@vidyashv-carbon

We are trying to migrate protractor automation suits to webdriverio.
we are seeing type error for transforming config.js using command npx jscodeshift -t ./node_modules/@wdio/codemod/protractor config/config.js

Error message :
ERR config/config.js Transformation error (Cannot read properties of undefined (reading 'map'))exact error is Transformation error (Cannot read properties of undefined (reading 'map'))

From stacktrace : node_modules/@wdio/codemod/protractor/utils.js:297:61)

const suites = require('./suites').suites

I have installed codemod and wdio/cli using command

npm install jscodeshift @wdio/codemod

npm install --save-dev @wdio/cli

Attached config file

config.js.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions