TypeError: _faker2.default.random.hexaDecimal is not a function
Which version should I use to have hexaDecimal() working?
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
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?