Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: Can't find variable: BigInt #17

Open
vijayasingam-paddle opened this issue Jul 11, 2022 · 1 comment
Open

ReferenceError: Can't find variable: BigInt #17

vijayasingam-paddle opened this issue Jul 11, 2022 · 1 comment

Comments

@vijayasingam-paddle
Copy link

vijayasingam-paddle commented Jul 11, 2022

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant