Giter Site home page Giter Site logo

Comments (8)

0918nobita avatar 0918nobita commented on May 20, 2024 1

I was also facing the same issue. By removing the "type": "module" from package.json in npm package containing scenario.js to run and re-running memlab, the issue was resolved.

from memlab.

jdelbarcogarza-softtek avatar jdelbarcogarza-softtek commented on May 20, 2024

Update: when the file is extracted from the project's folder, memlab works. But should memlab be able to run code inside the project's codebase?

from memlab.

JacksonGL avatar JacksonGL commented on May 20, 2024

The scenario file doesn't define page function parameter for action and back, not sure why it works when it is outside the project's codebase

from memlab.

mrdulin avatar mrdulin commented on May 20, 2024

same issue.

from memlab.

JacksonGL avatar JacksonGL commented on May 20, 2024

Do not forget about the page parameter in the scenario definition.

module.exports = {
  url: ...
  // do not forget about the `page` parameter here
  action: async (page) => { ... }
  // same
  back: async (page) => { ... }
}

from memlab.

mrdulin avatar mrdulin commented on May 20, 2024

Do not forget about the page parameter in the scenario definition.

module.exports = {
  url: ...
  // do not forget about the `page` parameter here
  action: async (page) => { ... }
  // same
  back: async (page) => { ... }
}

OP's code has forgotten the page parameter, but this will not solve the issue.

from memlab.

JacksonGL avatar JacksonGL commented on May 20, 2024

@mrdulin To help understand and investigate the issue, can you share the steps to reproduce the issue you got? E.g., what the scenario file looked like, how you run the scenario file, and the error message.

from memlab.

0918nobita avatar 0918nobita commented on May 20, 2024

Alternatively, the issue can also be resolved by renaming scenario.js to scenario.cjs .

from memlab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.