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

launchFunction is not a function #59

Open
GeoffreyOlivier opened this issue Sep 17, 2020 · 3 comments
Open

launchFunction is not a function #59

GeoffreyOlivier opened this issue Sep 17, 2020 · 3 comments

Comments

@GeoffreyOlivier
Copy link

GeoffreyOlivier commented Sep 17, 2020

Hello, I have a error message window is not defined I don't why, I just install and add my script for the file in my nuxt.conf.js. I work with Nuxt JS

import CookiesEuBanner from 'cookies-eu-banner'
export default {
  new: CookiesEuBanner(function () {
    console.log('hello')
  }, true)
}

Sorry for the several edit.

@GeoffreyOlivier GeoffreyOlivier changed the title Cookie is True without accept. launchFunction is not a function Sep 17, 2020
@paddotk
Copy link

paddotk commented Dec 19, 2022

I have the same issue, but I think the title of this ticket is wrong...

@Alex-D
Copy link
Owner

Alex-D commented Dec 19, 2022

This lib is browser-side, not server-side, so it can't be server-side rendered.
I do not know much about Nuxt or Next or things like that, but be sure ton put that code on client side only

@paddotk
Copy link

paddotk commented Jan 10, 2023

@Alex-D I'm also using Nuxt, but made sure to instantiate it client-side. window is available, yet CookiesEuBanner doesn't seem to recognize it (or give the wrong error perhaps).

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

3 participants