Skip to content

Conversation

@imolorhe
Copy link
Contributor

@imolorhe imolorhe commented Oct 22, 2025

Due to recent changes in Altair GraphQL v8.4.0 (updating the angular version and build system which uses native ESM module imports), the current static boilerplate no longer works properly (Sorry about the breaking change!)

Updating the script tags as appropriate to conform to the new setup.

Closes #1201

Given this was a change in a recent version of Altair and the older versions still work with the older template, it might be prudent to use a fixed version of Altair to avoid breaking changes in newer versions breaking GraphQL.Server.Ui.Altair

Here's a codesandbox that uses the updated boilerplate (demo)

FYI jsdelivr allows you to set a major, minor or patch version, so it could be fixed to cdn.jsdelivr.net/npm/altair-static@8/build/dist/ or cdn.jsdelivr.net/npm/[email protected]/build/dist/ to still get minor or patch version updates

Due to recent changes in Altair GraphQL v8.4.0 (updating the angular version and build system which uses native ESM module imports), the current static boilerplate no longer works properly.

Updating the script tags as appropriate to conform to the new setup.
Copy link

@nlampe-bigdutchman nlampe-bigdutchman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As shown in his code sandbox example (see Comment in altair-graphql/altair#2924 (comment) for details), these changes should solve the issue.

Copy link

@CaiusSacu CaiusSacu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks alright, but shouldn't the runtime script be changed to type module too instead of just plain deleting it?

@Shane32 Shane32 merged commit 973b850 into graphql-dotnet:master Oct 25, 2025
9 checks passed
@imolorhe
Copy link
Contributor Author

@CaiusSacu there is no more runtime.js

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.26%. Comparing base (a84c553) to head (20149fa).
⚠️ Report is 36 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #1202       +/-   ##
===========================================
- Coverage   90.88%   68.26%   -22.63%     
===========================================
  Files          50      123       +73     
  Lines        2425     4528     +2103     
  Branches      432      548      +116     
===========================================
+ Hits         2204     3091      +887     
- Misses        175     1339     +1164     
- Partials       46       98       +52     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Successfully merging this pull request may close these issues.

GraphQL.Server.Ui.Altair 8.3.1 - Doesn't work - stuck on splash screen

5 participants