nuxt-github-api icon indicating copy to clipboard operation
nuxt-github-api copied to clipboard

wrong option name in doc

Open emretepedev opened this issue 4 years ago • 2 comments

wrong option name in README.md. github should be replaced with githubApi.

in nuxt.config.js

{
  githubApi: {
    // token: required by the GitHub API
    token: process.env.GITHUB_API_TOKEN,

    // graphQLQuery: defaults to a search query
    graphQLQuery: `
      query GetUser($login: String!) {
        user(login: $login) {
          name
          avatarUrl
          bio
          isHireable
        }
      }
      `,
    
    // variables: Object which includes any GraphQL variables required by your query.
    variables: {
      login: 'lindsaykwardell'
    }
  }
}

emretepedev avatar Jan 30 '22 07:01 emretepedev

I'm getting this error with Nuxt3: Cannot read properties of undefined (reading 'githubApi'). Is it not supported for Nuxt 3 or something?

bastianhilton avatar Dec 29 '22 03:12 bastianhilton

@bastianhilton Nuxt 3 is currently not supported, I was waiting for it to reach a stable release before updating. I will release a major update later to support Nuxt 3.

lindsaykwardell avatar Dec 30 '22 00:12 lindsaykwardell