Skip to content

How to use it with nuxt3? #117

@kirtan403

Description

@kirtan403

Getting an error :

[Vue warn]: Failed to resolve component: XyzTransition

My Setup:

"nuxt": "^3.3.1",

File: anim-xyz.client.js

import VueAnimXyz from '@animxyz/vue3'
import '@animxyz/core' // Import css here if you haven't elsewhere

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.use(VueAnimXyz)
})

Tried adding build transpile in nuxt.config.ts but not working.

build: {
    transpile: ["@animxyz/core", "@animxyz/vue3", "clsx"],
}

Also tried adding animxyz css in nuxt.config.ts but doesn't work:

css: [
    "~/assets/css/main.css",
    "@animxyz/core",
    "@animxyz/core/dist/animxyz.min.css",
  ],

Nothing works. Any ides?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions