Skip to content

Getting Error: cannot find module 'node-emoji' #22

Open
@sachin-s-joshi

Description

@sachin-s-joshi

With

  • wdio v7
  • cucumber v7
  • wdio.conf.ts runner

Configuration:

const sourceSpecDirectory = process.env.features;
const parallelExecutionReportDirectory = `path/to/parallelExecutionReportDirectory`;

let featureFilePath = `${sourceSpecDirectory}/*.feature`;

// If parallel execution is set to true, then create the Split the feature files
// And store then in a tmp spec directory (created inside `the source spec directory)
if (argv.parallel === 'true') {
    const tmpSpecDirectory = `${sourceSpecDirectory}/tmp`;
    cParallel.performSetup({
        sourceSpecDirectory: sourceSpecDirectory,
        tmpSpecDirectory: tmpSpecDirectory,
        cleanTmpSpecDirectory: true
    });
    featureFilePath = `${tmpSpecDirectory}/*.feature`
}

Stack Trace:
Failed loading configuration file: /Users/sjosh00/PycharmProjects/wdio-mocha/wdio.conf.ts: Cannot find module 'node-emoji'
Require stack:

  • /Users/sjosh00/PycharmProjects/wdio-mocha/node_modules/wdio-cucumber-parallel-execution/performSetup.js
  • /Users/sjosh00/PycharmProjects/wdio-mocha/node_modules/wdio-cucumber-parallel-execution/index.js
  • /Users/sjosh00/PycharmProjects/wdio-mocha/wdio.conf.ts
  • /Users/sjosh00/PycharmProjects/wdio-mocha/node_modules/@wdio/config/build/lib/FileSystemPathService.js
  • /Users/sjosh00/PycharmProjects/wdio-mocha/node_modules/@wdio/config/build/lib/ConfigParser.js
  • /Users/sjosh00/PycharmProjects/wdio-mocha/node_modules/@wdio/config/build/index.js
  • /Users/sjosh00/PycharmProjects/wdio-mocha/node_modules/@wdio/cli/build/launcher.js
  • /Users/sjosh00/PycharmProjects/wdio-mocha/node_modules/@wdio/cli/build/index.js
  • /Users/sjosh00/PycharmProjects/wdio-mocha/node_modules/@wdio/cli/bin/wdio.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions