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

Cannot read property 'push' of undefined #91

Closed
dargmuesli opened this issue Jun 5, 2021 · 4 comments · Fixed by #92
Closed

Cannot read property 'push' of undefined #91

dargmuesli opened this issue Jun 5, 2021 · 4 comments · Fixed by #92
Labels
bug Something isn't working

Comments

@dargmuesli
Copy link

Version

@nuxtjs/color-mode: v2.0.7 or newer (currently: v2.0.9)
nuxt: v2.15.6

Since https://github.com/nuxt-community/color-mode-module/pull/85/files#diff-c3a1f4f22d1c26a96e0e94646ca95379288ce182d579bc813c2b3d591a8dbfe8R14 I receive the error "Cannot read property 'push' of undefined" as ctx.app.head is a function (at least in my configuration) and thus has no property script.

@dargmuesli dargmuesli added the bug Something isn't working label Jun 5, 2021
Copy link
Contributor

atinux commented Jun 11, 2021

Please don't use head as function in your nuxt.config.js: https://github.com/maevsi/maevsi/blob/master/nuxt/nuxt.config.js#L108

@dargmuesli
Copy link
Author

Copy link
Contributor

atinux commented Jun 11, 2021

@dargmuesli
Copy link
Author

Thanks for fixing this so quickly! <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants