@nuxt/[email protected] bundles pre-0.9 devframe/hub imports (mountDevframe, coerceAgentPositionalArgs) — breaks against @devframes/[email protected] / [email protected]
Summary
@nuxt/[email protected] fails to load under Nuxt 5 nightly because its published dist/chunks/module-main.mjs imports symbols that no longer exist in the current @devframes/[email protected] and [email protected] releases. Nuxt aborts on boot with an ESM SyntaxError before the dev server can serve anything.
The bundled devtools chunk was compiled against the pre-0.9 devframe/hub API, so it cannot coexist with [email protected] / @devframes/[email protected].
Reproduction
Any Nuxt 5 nightly app with @nuxt/[email protected] and the current @devframes/* 0.9 line installed, running nuxi dev.
[email protected](also repro'd on5.0.0-29666842.2bab300c)@nuxt/[email protected](latest 4.x alpha)@devframes/[email protected](repro'd on 0.9.0 / 0.9.3 / 0.9.4 too)[email protected]
Error 1 — mountDevframe (from @devframes/hub/node)
ERROR The requested module '@devframes/hub/node' does not provide an export named 'mountDevframe'
import { DevframeCommandsHost as DevToolsCommandsHost, DevframeDocksHost as DevToolsDockHost, DevframeMessagesHost as DevToolsMessagesHost, DevframeTerminalsHost as DevToolsTerminalHost, createHubContext, mountDevframe, mountDevframe as mountDevframe$1 } from "@devframes/hub/node";
^^^^^^^^^^^^^
SyntaxError: The requested module '@devframes/hub/node' does not provide an export named 'mountDevframe'
at enableModule (.../@nuxt/devtools/dist/chunks/module-main.mjs:12050:20)
mountDevframe was removed in @devframes/[email protected] (last present in 0.8.2). Verified by inspecting the published tarballs of @devframes/hub:
| hub version | dist/node/* exports mountDevframe |
|---|---|
| 0.7.16 | ✅ |
| 0.8.0 / 0.8.1 / 0.8.2 | ✅ |
| 0.9.0 / 0.9.2 / 0.9.3 / 0.9.4 | ❌ |
Error 2 — coerceAgentPositionalArgs (from devframe/node)
Pinning @devframes/hub back to 0.8.2 clears error 1 and immediately surfaces the next one, confirming the bundled chunk targets the whole pre-0.9 API surface:
ERROR The requested module 'devframe/node' does not provide an export named 'coerceAgentPositionalArgs'
import { coerceAgentPositionalArgs, createHostContext, createStorage } from "devframe/node";
^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: The requested module 'devframe/node' does not provide an export named 'coerceAgentPositionalArgs'
at enableModule (.../@nuxt/devtools/dist/chunks/module-main.mjs:12050:20)
coerceAgentPositionalArgs is not exported by [email protected].
Root cause
@nuxt/[email protected] bundles this integration code directly into its own dist/chunks/module-main.mjs (the published @devframes/[email protected] / @devframes/[email protected] tarballs do not contain these imports — they were inlined at devtools build time from a pre-0.9 version). So the published alpha.11 hard-requires:
@devframes/hub≤0.8.2(formountDevframe)devframewithcoerceAgentPositionalArgs(pre-0.9)
This makes the latest devtools 4 alpha unusable alongside [email protected]. Downstreams that migrated their own devframe usage to 0.9.x (e.g. via devframe/initiate's initDevframe) can't simultaneously downgrade the shared devframe/@devframes/hub to satisfy devtools.
Expected
A @nuxt/[email protected].* release rebuilt against the @devframes/* 0.9 API (createHubContext + the current devframe/node surface, no mountDevframe / coerceAgentPositionalArgs), so it can run against [email protected] / @devframes/[email protected].
Notes
- alpha.11 is the newest 4.x alpha on npm, so there is no newer devtools to move to.
- Workaround for now is to disable
@nuxt/devtoolsin affected projects until an updated alpha ships.
nuxt/devtools#1065 - feat(deps): migrate to Vite DevTools v0.5.0 and Devframe v0.9.2 [merged]
nuxt/devtools#1066 - perf(devtools): trim 🔗 Related PRs
@nuxt/devtools runtime dependencies [merged]
📝 Issue Planner
Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.
- [ ] Create Plan
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your .coderabbit.yaml:
issue_enrichment:
auto_enrich:
enabled: false
💬 Have feedback or questions? Drop into our discord!