SimitTomar / wdio-cucumber-parallel-execution

A WebdriverIO capability for running Cucumber scenarios in parallel.
25 stars 10 forks source link

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

Open sachin-s-joshi opened 3 years ago

sachin-s-joshi commented 3 years ago

With

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:

David-SanchezG commented 2 years ago

Hello, is there any update on this here or anywhere? I got the same problem...

yunj commented 2 years ago

node-emoji is referenced in performSetup.js but it's a dev dependency. The workaround is to explicitly add node-emoji as a dependency, or use an older version wdio-cucumber-parallel-execution@3.6.12 which doesn't have the dependency node-emoji.