vite icon indicating copy to clipboard operation
vite copied to clipboard

rollup-plugin-dynamic-import-variables - graphql

Open productdevbook opened this issue 3 years ago • 2 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 avatar Sep 07 '21 13:09 productdevbook

https://github.com/rollup/plugins/tree/master/packages/graphql

productdevbook avatar Sep 07 '21 15:09 productdevbook

@productdevbook 's solution worked for me

had this issue in SvelteKit, which is built on Vite

csellis avatar Feb 13 '22 15:02 csellis