Skip to content

fix: wrap nuxt runtime plugin in defineNuxtPlugin#241

Open
ExEr7um wants to merge 1 commit into
formkit:masterfrom
ExEr7um:master
Open

fix: wrap nuxt runtime plugin in defineNuxtPlugin#241
ExEr7um wants to merge 1 commit into
formkit:masterfrom
ExEr7um:master

Conversation

@ExEr7um

@ExEr7um ExEr7um commented Jul 16, 2026

Copy link
Copy Markdown

Fixes #240

Since v0.10.0 Nuxt prints a warning that the plugin is not wrapped in defineNuxtPlugin — the wrapper was dropped in eb9285b during the build rework.

Turns out it wasn't actually needed for the build: mkdist doesn't resolve imports, so #imports passes through to the published plugin.mjs just fine. This restores the wrapper and keeps the relative vue import.

Tested in build/nuxt-playground with Nuxt 4.4.8 — warning is gone, directive still registers.

@vercel

vercel Bot commented Jul 16, 2026

Copy link
Copy Markdown

@ExEr7um is attempting to deploy a commit to the Formkit Team on Vercel.

A member of the Team first needs to authorize it.

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.

auto-animate/nuxt: Module causes 'is not wrapped in defineNuxtPlugin' warning since v0.10.0

1 participant