DamianOsipiuk / vue-query

Hooks for fetching, caching and updating asynchronous data in Vue
https://vue-query.vercel.app/
MIT License
1.11k stars 48 forks source link

webpack loaders with nuxt-bridge #259

Closed esamani77 closed 2 years ago

esamani77 commented 2 years ago

Hey there, I tried to use vue-query with nuxt framework with nuxt-bridge version. But I faced with this problem, What should I do? image

DamianOsipiuk commented 2 years ago

Try adding this to your nuxt config:

import { defineNuxtConfig } from "@nuxt/bridge";

export default defineNuxtConfig({
  build: {
    transpile: ["vue-query", "vue-demi"],
  }
})
esamani77 commented 2 years ago

thanks. it works.