Skip to content

Conversation

@Kartikayy007
Copy link

Description

  • Fix Studio and Preview crashes caused by running @asyncapi/studio (built for Next 14) against the CLI’s hoisted Next 15 runtime.
  • Update src/domains/models/Studio.ts and src/domains/models/Preview.ts to resolve and use next from the @asyncapi/studio installation (via require.resolve and a small factory helper), ensuring the Next.js version matches the Studio build.
  • Verified with npm run build, manual runs of node ./bin/run start studio and node ./bin/run start preview (no Next error, Studio/Preview load correctly), and npm run cli:test -- test/integration/studio.test.ts.

Related issue(s)

@changeset-bot
Copy link

changeset-bot bot commented Nov 20, 2025

🦋 Changeset detected

Latest commit: bfc2614

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@asyncapi/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Nov 20, 2025

Changeset has been generated for this PR as part of auto-changeset workflow.

Please review the changeset before merging the PR.
---
'@asyncapi/cli': patch
---

fix: resolve Next.js version mismatch for studio/preview

- e836cf8: fix: resolve Next.js version mismatch for studio/preview
- 617e4b5: fix: remove unnecessary type assertions in Studio and Preview

If you are a maintainer or the author of the PR, you can change the changeset by clicking here

Tip

If you don't want auto-changeset to run on this PR, you can add the label skip-changeset to the PR or remove the changeset and change PR title to something other than fix: or feat:.

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Triage

Development

Successfully merging this pull request may close these issues.

[BUG] Studio & Preview Failing w/ Next Error

2 participants