Closed ThomasKoscheck closed 4 years ago
Hi - I'll admit that I haven't used this without Svelte for a long time. It's possible that the attachBanner
function was broken during the large refactor that happened recently.
I'll have a look and see if I can determine the cause.
@ThomasKoscheck I've noticed this line in your code:
const { attachBanner } = require('@beyonk/gdpr-cookie-consent-banner/dist/esm/bundle.js')
I think in the readme, the attachBanner
is not destructured as it is the default export.
Try:
const attachBanner = require('@beyonk/gdpr-cookie-consent-banner/dist/esm/bundle.js')
@antony Thanks, this worked for me
Hi,
I tried to implement the banner into my nuxt application. I followed you instructions from the Readme, but Nuxt gives me this error:
My vue file
Integration in default layout: