You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 7, 2021. It is now read-only.
I looked in both .google/token.json and ~/.google/token.json.
I just tried to go to the next step, but saw this:
❯ yarn gatsby develop
$ /x/tiny-news-demo/node_modules/.bin/gatsby develop
success open and validate gatsby-configs - 0.048s
ERROR
Error in"/x/tiny-news-demo/node_modules/gatsby-source-google-docs/gatsby-node.js": No token. Please generate one using `gatsby-source-google-docs-token`command
Error: No token. Please generate one using `gatsby-source-google-docs-token`command
I did see that the .env file was updated. So I exported what was in this file like so:
❯ export GATSBY_SOURCE_GOOGLE_DOCS_TOKEN={"client_id"...................}
❯ yarn gatsby develop [13:13:12]
yarn run v1.22.5
$ /x/tiny-news-demo/node_modules/.bin/gatsby develop
success open and validate gatsby-configs - 0.041s
ERROR
Error in"/x/tiny-news-demo/node_modules/gatsby-source-google-docs/gatsby-node.js": Unexpected token c in JSON at position 1
SyntaxError: Unexpected token c in JSON at position 1
- JSON.parse
- google-auth.js:70 GoogleAuth.getToken
[tiny-news-demo]/[gatsby-source-google-docs]/utils/google-auth.js:70:20
- google-auth.js:30 new GoogleAuth
[tiny-news-demo]/[gatsby-source-google-docs]/utils/google-auth.js:30:33
- google-auth.js:101 Object.<anonymous>
[tiny-news-demo]/[gatsby-source-google-docs]/utils/google-auth.js:101:18
- v8-compile-cache.js:178 Module._compile
[tiny-news-demo]/[v8-compile-cache]/v8-compile-cache.js:178:30
- loader.js:1157 Object.Module._extensions..js
internal/modules/cjs/loader.js:1157:10
- loader.js:985 Module.load
internal/modules/cjs/loader.js:985:32
- loader.js:878 Function.Module._load
internal/modules/cjs/loader.js:878:14
- loader.js:1025 Module.require
internal/modules/cjs/loader.js:1025:19
- v8-compile-cache.js:159 require
[tiny-news-demo]/[v8-compile-cache]/v8-compile-cache.js:159:20
- google-docs.js:18 Object.<anonymous>
[tiny-news-demo]/[gatsby-source-google-docs]/utils/google-docs.js:18:5
- v8-compile-cache.js:178 Module._compile
[tiny-news-demo]/[v8-compile-cache]/v8-compile-cache.js:178:30
- loader.js:1157 Object.Module._extensions..js
internal/modules/cjs/loader.js:1157:10
- loader.js:985 Module.load
internal/modules/cjs/loader.js:985:32
- loader.js:878 Function.Module._load
internal/modules/cjs/loader.js:878:14
- loader.js:1025 Module.require
internal/modules/cjs/loader.js:1025:19
not finished load plugins - 0.970s
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I looked in both
.google/token.json
and~/.google/token.json
.I just tried to go to the next step, but saw this:
I did see that the
.env
file was updated. So I exported what was in this file like so:The text was updated successfully, but these errors were encountered: