How to generate id for new user?

When i use Ionic.User.anonymousId(), i a have following error ?? what i will to do ?