GithubHelp home page GithubHelp logo

Can't use Faker with k6 about faker HOT 16 OPEN

pawfectQA avatar pawfectQA commented on June 2, 2024 1
Can't use Faker with k6

from faker.

Comments (16)

ST-DDT avatar ST-DDT commented on June 2, 2024 2

@pawfectQA Thanks for providing the zip. Which version of k6 are you using?
I know you have included the exe in the zip, but I cannot verify its integrity as it seems to be an older version.

EDIT: ⚠️ The checksums of the zipped and the v0.49 from github don't match.

from faker.

ST-DDT avatar ST-DDT commented on June 2, 2024 1

Please provide us with a minimal reproduction example, so that we can have an in detail look at it and verify the solution ourselves.

from faker.

github-actions avatar github-actions commented on June 2, 2024

Thank you for your feature proposal.

We marked it as "waiting for user interest" for now to gather some feedback from our community:

  • If you would like to see this feature be implemented, please react to the description with an up-vote (:+1:).
  • If you have a suggestion or want to point out some special cases that need to be considered, please leave a comment, so we are aware about them.

We would also like to hear about other community members' use cases for the feature to give us a better understanding of their potential implicit or explicit requirements.

We will start the implementation based on:

  • the number of votes (:+1:) and comments
  • the relevance for the ecosystem
  • availability of alternatives and workarounds
  • and the complexity of the requested feature

We do this because:

  • There are plenty of languages/countries out there and we would like to ensure that every method can cover all or almost all of them.
  • Every feature we add to faker has "costs" associated to it:
    • initial costs: design, implementation, reviews, documentation
    • running costs: awareness of the feature itself, more complex module structure, increased bundle size, more work during refactors

View more issues which are waiting for user interest

from faker.

pawfectQA avatar pawfectQA commented on June 2, 2024

test issue.zip
the code itself can be with mistakes, but it lets test the issue. Thank you!

from faker.

ST-DDT avatar ST-DDT commented on June 2, 2024

Have you tried with the latest version of k6 as well?

from faker.

pawfectQA avatar pawfectQA commented on June 2, 2024

I use v0.49 of k6

from faker.

pawfectQA avatar pawfectQA commented on June 2, 2024

I tried the latest version and it has the same issue.

from faker.

ST-DDT avatar ST-DDT commented on June 2, 2024

⚠️ The checksums of the zipped and the v0.49 from github don't match.

from faker.

pawfectQA avatar pawfectQA commented on June 2, 2024

the zipped one may be lower version because it includes some extension 🧐 but I tried all the latest versions too

from faker.

ST-DDT avatar ST-DDT commented on June 2, 2024

Instead of importing from @faker-js/faker try https://cdn.jsdelivr.net/npm/@faker-js/[email protected]/dist/esm/locale/en.mjs

or adding a package.json with @faker-js/faker as depedency and run npm install and then use ./node_modules/@faker-js/faker.

from faker.

ST-DDT avatar ST-DDT commented on June 2, 2024

Does that help you/fix the issues you have?

from faker.

pawfectQA avatar pawfectQA commented on June 2, 2024

It says: WARN[0002] The source for https://cdn.jsdelivr.net/npm/@faker-js/[email protected]/dist/esm/chunk-LSZKOVGW.mjs needs to go through babel but is over 256000 bytes. For performance reasons source map support will be disabled for this particular file.

Still investigating

from faker.

pawfectQA avatar pawfectQA commented on June 2, 2024

and the second method gave me "node_modules@faker-js\faker: Incorrect function."

from faker.

ST-DDT avatar ST-DDT commented on June 2, 2024

and the second method gave me "node_modules@faker-js\faker: Incorrect function."

You might have to adjust the path to match your actual file system.

from faker.

ST-DDT avatar ST-DDT commented on June 2, 2024

Did you have any luck getting this to work?

from faker.

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.