-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
internet.jwt() fails on documentation website #3285
Copy link
Copy link
Labels
c: bugSomething isn't workingSomething isn't workingc: docsImprovements or additions to documentationImprovements or additions to documentationc: externalIssues that related to external servicesIssues that related to external servicesp: 1-normalNothing urgentNothing urgent
Milestone
Metadata
Metadata
Assignees
Labels
c: bugSomething isn't workingSomething isn't workingc: docsImprovements or additions to documentationImprovements or additions to documentationc: externalIssues that related to external servicesIssues that related to external servicesp: 1-normalNothing urgentNothing urgent
Pre-Checks
Describe the bug
When running
faker.internet.jwt()on our documentation site, you receive an runtime error:This might affect other browser environments as well (at least the ones using the same CDN).
Minimal reproduction code
Go to https://fakerjs.dev and open the dev tools.
Run the following:
Additional Context
Our check for the existance of
Bufferfails because the file (https://cdn.jsdelivr.net/npm/@faker-js/faker@9.2.0/+esm) loaded from the cdn includes a Buffer polyfill:Environment Info
Tested in Microsoft Edge - Version 131.0.2903.63 (Offizielles Build) (64-Bit)Which module system do you use?
Used Package Manager
npm