Skip to content

fix: Undefined function When #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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