Can't import `.gql` files


I’m fairly new to strapi, so i’m using nuxt, with nuxt-strapi module. i’ve few queries, but i can’t seem to import them, i’ve tried adding the

import graphql from "@rollup/plugin-graphql";
    vite: {
        plugins: [graphql()],

to my nuxt.config.ts but still cant import .gql files.

This topic has been created from a Discord post (1233120658142134302) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

I would look at using either a nuxt graphql client or apollo to use your graphql

<@347119534957789187> Hey, Actually it works, Just TS is throwing error in IDE when i import it, adding a ts-ignore works.

Good glad you have it working and it wasn’t anything major.