Faker.js: random.hexaDecimal() is not available in v4.1.0

Created on 8 Oct 2017  路  4Comments  路  Source: Marak/faker.js

TypeError: _faker2.default.random.hexaDecimal is not a function
Which version should I use to have hexaDecimal() working?

Most helpful comment

Jun 19, 2017 huh? It is 2019 now. Maybe we are waiting for Halley's Comet to make another orbit before releasing?

All 4 comments

As far as I know 4.1.0 was published on Feb 21, 2017, while hexaDecimal added on Jun 19, 2017. I think we should wait for the next published version...

Jun 19, 2017 huh? It is 2019 now. Maybe we are waiting for Halley's Comet to make another orbit before releasing?

I just encountered the problem. The issue is that the NPM version is stuck on version 4.1.0. Version 5 has been delayed (https://github.com/Marak/faker.js/issues/692).

Since the npm package is stuck on version 4.1.0 you should instead add "faker": "Marak/faker.js" to your dependencies. This will use the master branch from the Github repo.

This isn't ideal since you're not depending on any particular version of the project, so if breaking changes are introduced you will have no idea until you reinstall your dependencies and try to run your application.

You can link directly to a Github commit SHA via NPM package.json

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aadamsx picture aadamsx  路  6Comments

noyessie picture noyessie  路  4Comments

Deilan picture Deilan  路  3Comments

HoustonBass picture HoustonBass  路  6Comments

Aleyasen picture Aleyasen  路  6Comments