Skip to content

Conversation

fsteinbauer
Copy link

@fsteinbauer fsteinbauer commented Feb 25, 2020

Recently I set up another new blank repository. After adding picklejs as a dependency, i got the following error: Undefined function When.

Below is the configuration I used to set up this repository:

package.json

{
  "name": "expleotest",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "cypress": "cypress open",
    "test": "cypress run"
  },
  "keywords": [],
  "author": "Florian Steinbauer <[email protected]>",
  "license": "ISC",
  "repository": {
    "type": "git",
    "url": "https://github.com/fsteinbauer/.git"
  },
  "dependencies": {
    "cypress": "^4.0.1",
    "cypress-cucumber-preprocessor": "2.0.1",
    "dill": "git+https://github.com/fsteinbauer/dill.git#refactoring",
    "picklejs": "^0.101.0"
  },
  "cypress-cucumber-preprocessor": {
    "nonGlobalStepDefinitions": false,
    "stepDefinitions": "support"
  }
}

cypress.json

{
  "testFiles": "**/*.feature",
  "pluginsFile": "plugins/index.js",
  "supportFile": "support/index.js",
  "integrationFolder": "integration",
  "ignoreTestFiles": "*(!(*.spec.js|*.feature))",
  "dill": {
    "stepDefinitions": "**/*.steps",
    "stepDefinitionTemp": "support/steps-compiled.json"
  }
}

@EvaFro
Copy link
Contributor

EvaFro commented Jul 9, 2020

@fsteinbauer you should only need pickle and cypress as dependencies. The rest is not needed. Try again with only those two dependencies.

Copy link
Contributor

@EvaFro EvaFro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants