justeattakeaway/fozzie-components

f-cookie-banner cookie config not working in non-nuxt project

DamianMullins opened this issue · 1 comments

Just testing the f-cookie-banner out in a plain Vue.js project and I'm seeing this error when pressing the accept buttons:

Screenshot 2021-02-12 at 14 23 38

It appears to be caused by the fact we're assuming that this.$cookies is available in the consuming application.

I think this might be a convention in our Nuxt project, but it isn't in place in some of our other non-nuxt projects?

In our other npm packages, such as OIDC, we are using the js-cookie npm package. Should we be using that instead? Or providing some sort of fallback?

Fixed in #727.