How to use `casual faker from NPM`?


#1

I tried to use ``casual faker` from NPM

import casual from `casual`

Get error


#2

Have you tried the casual-browserify fork? https://github.com/Klowner/casual-browserify. I glanced at the code, and casual dynamically loads the various providers (such as address). casual-browserify statically requires each of the providers to ensure they are bundled for the browser. I haven’t tested the package but given the error message you posted, I suspect that the same approach may be required for Meteor as well.


#3

thanks I will try :sunny:


#4

It work fine

npm install casual-browserify --save
--------
import casual from 'casual-browserify'

But not up to date with origin casual