nuxt-github-api
nuxt-github-api copied to clipboard
wrong option name in doc
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'
}
}
}
I'm getting this error with Nuxt3: Cannot read properties of undefined (reading 'githubApi'). Is it not supported for Nuxt 3 or something?
@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.