Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuck forever [UPDATE:] Google signin disabled for app #415

Open
anandsiddharth opened this issue Aug 28, 2020 · 5 comments
Open

Stuck forever [UPDATE:] Google signin disabled for app #415

anandsiddharth opened this issue Aug 28, 2020 · 5 comments

Comments

@anandsiddharth
Copy link

2020-08-28

 extend(config, ctx) {
      if (ctx.isDev) {
        config.devtool = ctx.isClient ? 'source-map' : 'inline-source-map'
      }

      if (ctx.isClient) {
        let guessOptions = {}
        var GA = '--masked--view--id--'
        if (GA) guessOptions.GA = GA
        else
          guessOptions.reportProvider = () =>
            Promise.resolve(JSON.parse(readFileSync('./routes.json')))

        config.plugins.push(new GuessPlugin(guessOptions))
      }
    },

Nuxt: v2.13.1
Guess webpack: 0.4.19

@anandsiddharth
Copy link
Author

UPDATE

So just figured out, the signin with google is disabled for this app error issue.

How to fix?

2020-08-28 (4)

@anandsiddharth anandsiddharth changed the title Stuck forever Stuck forever [UPDATE:] Google signin disabled for app Aug 28, 2020
@mgechev
Copy link
Member

mgechev commented Aug 31, 2020

You can use a JWT. Find docs here.

@anandsiddharth
Copy link
Author

@mgechev Okay.. that worked, Thanks.
But it doesn't generate any prefetching instruction for my nuxt project.
Here is my configuration

extend(config, ctx) {
      if (ctx.isDev) {
        config.devtool = ctx.isClient ? 'source-map' : 'inline-source-map'
      }

      if (ctx.isClient && process.env.NODE_ENV == 'production') {
        let guessOptions = {}
        var GA = '212378167'

        guessOptions.debug = true
        guessOptions.jwt = credentials
        guessOptions.period = {
          startDate: new Date('2016-1-2'),
          endDate: new Date(),
        }
        if (GA) {
          guessOptions.GA = GA
        } else {
          guessOptions.reportProvider = () => {
            return Promise.resolve(JSON.parse(readFileSync('./routes.json')))
          }
        }
        config.plugins.push(new GuessPlugin(guessOptions))
      }
    },

If I add guessParser, it throws unknown project type.

export enum ProjectType {

I believe there is no ProjectType for vue or nuxt, on packages/common/interfaces.ts

2020-09-02 (1)

@mgechev
Copy link
Member

mgechev commented Sep 2, 2020

@daliborgogic should be able to help for Nuxt.

@anandsiddharth
Copy link
Author

Hi @daliborgogic,
Am I doing something wrong with my configuration?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants