Closed yayitazale closed 8 months ago
Hi @yayitazale!
On first sight, it seems like you're using a configuration from the upcoming v3 of vanilla-cookieconsent
. This integration currently only supports version ^2.9.1
(so the 2.x branch) since version 3 is not stable yet.
Can you check in your installation, which version of vanilla-cookieconsent
you're using - just to be sure, you're on v2.
npm list vanilla-cookieconsent
(see this stackoverflow answer for more information about npm list
)
Version 3 and Version 2 of vanilla-cookieconsent
seem to be not compatible on a config level.
I'll check the next days, if I can just raise the dependency on vanilla-cookieconsent
to also allow v3.0.0-rc.x
versions.
For now, you can try changing your configuration to be compatible with version 2, which is documented in the README.md of orestbida/cookieconsent
.
Hi @yayitazale!
On first sight, it seems like you're using a configuration from the upcoming v3 of
vanilla-cookieconsent
. This integration currently only supports version^2.9.1
(so the 2.x branch) since version 3 is not stable yet.Can you check in your installation, which version of
vanilla-cookieconsent
you're using - just to be sure, you're on v2.npm list vanilla-cookieconsent
(see this stackoverflow answer for more information about
npm list
)Version 3 and Version 2 of
vanilla-cookieconsent
seem to be not compatible on a config level.I'll check the next days, if I can just raise the dependency on
vanilla-cookieconsent
to also allowv3.0.0-rc.x
versions.For now, you can try changing your configuration to be compatible with version 2, which is documented in the README.md of
orestbida/cookieconsent
.
Thank you, I wasn't aware of this. I was using the stackblitz.com for v3 (https://stackblitz.com/edit/vue-c5tqpr?file=src%2Fplugins%2Fcookieconsent-config.js)
Sorry for that, now it is working.
Thanks!
Hi:
I have installed the plugin doing:
npx astro add @jop-software/astro-cookieconsent
Then
npm install
to install dependenciesI can see vanilla-cookieconsent node-module installed.
My integration in astro.config.mjs looks like this:
However if I do a
npm run dev
to preview the page the consent modal is not showing up and I see this error in the console:What I'm doing wrong?
Thanks!