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

Open Beginner friendly
#240 0 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
nuxt, typescript
Domain
frontend

Research direction

Inspect the Nuxt module's runtime/plugin.mjs, which is named in the warning, and trace how the module registers that runtime plugin. Reproduce the warning in a Nuxt app using the module, then verify that the warning is gone while the plugin and directive still work as reported.

Written by the indexing model from the issue text.

Description

Hello,
since the new version v0.10.0 the following warning message appears in the console when running a Nuxt app that uses the auto-animate module:

[nuxt 2:44:48 PM]  WARN  Plugin <project_path>/node_modules/@formkit/auto-animate/nuxt/runtime/plugin.mjs is not wrapped in defineNuxtPlugin. It is advised to wrap your plugins as in the future this may enable enhancements.

The functionality is unchanged and the plugin/directive works correctly.

If you need a repro let me know but I think this reproduces in any Nuxt project that uses the module.

Dominant language
TypeScript
Stars
13.9k
Forks
260
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from formkit/auto-animate

All issues in formkit/auto-animate

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.