Skip to content
This repository was archived by the owner on Jul 7, 2021. It is now read-only.

In step 3 of the README, after running "npm run token", .google/token.json is not present #101

Open
hcharley opened this issue Jul 6, 2021 · 0 comments

Comments

@hcharley
Copy link

hcharley commented Jul 6, 2021

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant