You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Observe the Altair logo is displayed, but the client IDE does not load.
Open the developer console, and observe that an error is logged:
Uncaught ReferenceError: chrome is not defined
45147 https://altair-gql.sirmuel.design/main.js:1
r https://altair-gql.sirmuel.design/runtime.js:1
<anonymous> https://altair-gql.sirmuel.design/main.js:1
n https://altair-gql.sirmuel.design/runtime.js:1
<anonymous> https://altair-gql.sirmuel.design/main.js:1
45147 https://altair-gql.sirmuel.design/main.js:1
r https://altair-gql.sirmuel.design/runtime.js:1
<anonymous> https://altair-gql.sirmuel.design/main.js:1
n https://altair-gql.sirmuel.design/runtime.js:1
n self-hosted:1406
<anonymous> https://altair-gql.sirmuel.design/main.js:1
A second error is also logged (ReferenceError: AltairGraphQL is not defined), but this may just be a consequence of the previous error.
Expected behavior
The Altair client IDE loads without issue.
Screenshots
Desktop:
OS: Linux Mint 20.3 (through Virtual Box 6.1)
Browser Firefox 109.0
Platform: npm package
Version 5.0.13
Additional context
Loading the page on Chrome works without any issues, as does the Firefox extension.
The dev tools point me to the expression !!chrome?.runtime?.id as being what ultimately raises the error. In the diffs against the previous version, I see a change added this expression to packages/altair-app/src/app/modules/altair/utils/index.ts, which seems like a likely culprit:
- export const isExtension = !!(- (window as any).chrome &&- (window as any).chrome.runtime &&- (window as any).chrome.runtime.id- );+ export const isExtension = !!chrome?.runtime?.id;
* Reverted the changes which possibly has caused error #2111
* Update packages/altair-app/src/app/modules/altair/utils/index.ts
---------
Co-authored-by: Samuel <samuelimolo4real@gmail.com>
Describe the bug
Altair 5.0.13 from the npm package does not load in Firefox.
To Reproduce
A second error is also logged (
ReferenceError: AltairGraphQL is not defined
), but this may just be a consequence of the previous error.Expected behavior
The Altair client IDE loads without issue.
Screenshots
Desktop:
Additional context
Loading the page on Chrome works without any issues, as does the Firefox extension.
I started seeing this through the graphql-dotnet server's Altair UI package (repo: https://github.com/graphql-dotnet/server) a couple days ago. They load the latest Altair package from jsdelivr (https://cdn.jsdelivr.net/npm/altair-static/build/dist).
The dev tools point me to the expression
!!chrome?.runtime?.id
as being what ultimately raises the error. In the diffs against the previous version, I see a change added this expression topackages/altair-app/src/app/modules/altair/utils/index.ts
, which seems like a likely culprit:diffs: v5.0.12...v5.0.13#diff-aa95ab08f850063e601922f39c0341abf97355333648539bd4984d211c918461
The text was updated successfully, but these errors were encountered: