vcard icon indicating copy to clipboard operation
vcard copied to clipboard

ReferenceError: Can't find variable: module

Open nigel-daniels opened this issue 6 years ago • 0 comments

I am trying to use this module in the browser I have added it to my page directly using:

<script src="node_modules/vcard-parser/lib/vcard.js"></script>

However this then generates the error:

ReferenceError: Can't find variable: module

It seems this expects to be run in a node environment. Do you have guidance on how to use this module in the browser? Thanks.

nigel-daniels avatar Oct 17 '18 17:10 nigel-daniels