faker-js / faker

Generate massive amounts of fake data in the browser and node.js
https://fakerjs.dev
Other
13.07k stars 924 forks source link

unpkg not working #914

Closed amchconsult closed 2 years ago

amchconsult commented 2 years ago

Describe the bug

As described on documentation is not working. I am trying to use it on browser.

thank you

Reproduction

script type="text/javascript" src="https://unpkg.com/@faker-js/faker">

Additional Info

No response

Shinigami92 commented 2 years ago

Yeah, I think we need to remove this from our docs as we do not bundle UMD or register the faker instance in window/globalThis. So if unpkg is not doing some magic on its side, this will not work in any way.

Please use one of the other strategies like described here: https://fakerjs.dev/guide/#alternative-cdn-links Also note that cdn.skypack.dev had some issues and you may want to use one of the alternative CDNs

ST-DDT commented 2 years ago

See also: #635

Shinigami92 commented 2 years ago

We already removed and adjusted the docs