stoplightio / json-schema-tree

Apache License 2.0
10 stars 7 forks source link

ReferenceError: Can't find variable: BigInt #17

Open vijayasingam-paddle opened 1 year ago

vijayasingam-paddle commented 1 year ago

Context

We are a consumer of stoplight dev portal to render our API reference pages.

Current Behavior

While launching our documentation in Catalina MacOs with Safari version 13.1, we are getting an error and the page is not displayed.

Error Message: ReferenceError: Can't find variable: BigInt

Expected Behavior

We should not get this error and the page should load.

Possible Workaround/Solution

I can see that we are using BigInt in the BaseNode class which also has a comment saying // cannot use literal, cause TS. maybe we could try to use normal integer and fix the TS error in some other fashion.

Steps to Reproduce

  1. Launch the stoplight documents page in Safari 13.1. Page URL: https://meta.stoplight.io/docs/platform/52ab0a117eadd-welcome-to-the-stoplight-docs
  2. The page will not load and the dev tools will show the above error

Environment

vijayasingam-paddle commented 1 year ago

I am happy to change BigInt as normal integer and raise a PR if you think that is the correct way forward.