nuxt / vite

⚡ Vite Experience with Nuxt 2

Home Page:https://vite.nuxtjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rollup-plugin-dynamic-import-variables - graphql

productdevbook opened this issue · comments

Versions

nuxt-vite: 0.2.3
nuxt: 2.15.8

Reproduction


 ERROR  [rollup-plugin-dynamic-import-variables] Unexpected token (1:9)                                                                                                                                                                                                                        16:41:41
file: /graphql/apollo/login.graphql:1:9
mutation loginMutation($email: String!, $password: String!) {
  signIn(data: { email: $email, password: $password }) {
    accessToken
    refreshToken
  }
}

CleanShot 2021-09-07 at 16 42 06

@productdevbook 's solution worked for me

had this issue in SvelteKit, which is built on Vite