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
Cannot read property 'guess' of undefined #83
Comments
@daliborgogic do you know what might be going on here? |
@daliborgogic can u elaborate ? an example might help as well |
I think real problem is in // app.js
if (typeof window !== 'undefined') {
// Invoke guess() here
}
// Rest of app logic |
actually the check wont make any diff because its a php not a node env but still nothing changed, same error |
Would you share a minimum demo where we can reproduce the problem? |
sure, here is a demo repo https://github.com/ctf0/guess-demo |
I have the same issue here with a nuxt project, I am using this module https://github.com/nuxt-community/guess-module The config in nuxt.config.js is something like: ['@nuxtjs/guess', {
GA: process.env.GA_VIEW_ID,
jwt: {
private_key: process.env.GA_PRIVATE_KEY,
client_email: process.env.GA_CLIENT_EMAIL
},
period: {
startDate: new Date('2018-09-01'),
endDate: new Date('2018-10-09')
},
runtime: {
delegate: true,
prefetchConfig: {
'4g': 0.3,
'3g': 0.3,
'2g': 0.3,
'slow-2g': 0.3
}
}
}], |
@zipme |
@daliborgogic Hi, I think it does, check this thread #80 |
Thanks for point to this thread. Will check if there is any changes in API. |
@zipme Is your |
it's the view id, it's XXXXXXXX |
hi @daliborgogic , after I disabled the pwa and remove all the cache the error seems to be gone, I guess it was the previous cached js caused the issue. Thanks for the help!! |
How did you disabled the PWA? Ideally, Guess.js should not interfer with other modules. |
@mgechev I guess the issue I have is that I did some misconfiguration in the nuxt.config, but because of the PWA, the incorrect js file was being loaded even though I adjusted the config file, after I temporarily disabled the pwa module and clear the cache it works. |
@mgechev any news 🎈 ? |
am trying to use guess with laravel through a pre-defined routes file like in nuxt example so the setup is
guess-routes.json
ex.The text was updated successfully, but these errors were encountered: