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

Module [@nuxtjs/google-analytics,[object Object]] should export a function #27

Closed
ztrayner opened this issue Jun 13, 2017 · 4 comments
Closed

Comments

@ztrayner
Copy link

ztrayner commented Jun 13, 2017

Followed the instructions I found here, but I get the following error:

nuxt build && backpack build

[nuxt] Building...
[nuxt] Module [@nuxtjs/google-analytics,[object Object]] should export a function
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! wld@1.0.0 build: nuxt build && backpack build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the wld@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

My nuxt.config.js has the following (UA has been replaced)

modules: [ ['@nuxtjs/google-analytics', { ua: 'UA-XXXXXXX-X' }] ]

This question is available on Nuxt.js community (#c35)
@pi0
Copy link
Member

pi0 commented Jun 13, 2017

@ztrayner What version of nuxt.js are you currently using?

@ztrayner
Copy link
Author

"nuxt": "~1.0.0-alpha1"

@pi0
Copy link
Member

pi0 commented Jun 14, 2017

Babel style syntax for options (arrays) is only supported in latest alpha. Please simply upgrade to nuxt@1.0.0-alpha.4 and problem should resolved :)

@pi0 pi0 closed this as completed Jun 14, 2017
@ztrayner
Copy link
Author

I swear I just upgraded to alpha1! Haha. You guys move fast. Thanks!

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