Skip to content

CDN version throws error when included on the page #196

@vvmnnnkv

Description

@vvmnnnkv

Description

CDN version of package raises error when included on the page, e.g.

<script src="https://cdn.jsdelivr.net/npm/@openmined/syft.js@0.1.2/dist/index.js"></script>
index.js:646 Uncaught ReferenceError: global is not defined
    at index.js:646
    at index.js:4
    at index.js:5

How to Reproduce

Create html page and include JS scripts:
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@1.2.5/dist/tf.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@openmined/syft.js@0.1.2/dist/index.js"></script>

Expected Behavior

Should be no error, library should load as expected

Screenshots

If applicable, add screenshots to help explain your problem.

System Information

  • OS: Windows
  • OS Version: 10 Pro
  • Browser (if applicable): Google Chrome
  • Browser Version (if applicable): Version 84.0.4147.89 (Official Build) (64-bit)

Additional Context

n/a

Metadata

Metadata

Assignees

Labels

Severity: 1 - Critical 🔥Causes a failure of the complete software system, subsystem or a program within the systemType: Bug 🐛Some functionality not working in the codebase as intended

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions