Can not get Tarteaucitron to work with NextJS13
Unanswered
Muscovy Duck posted this in #help-forum
Muscovy DuckOP
Hi!
I struggle with adding tarteaucitron.js to a NextJS 13 website. Tarteaucitron is a js helper to manage cookie acceptation.
Here is my code: line 61 I have a Script component to include tarteaucitron.js, then I can tarteaucitron.init() line 87.
I don't understand at all since when I call tarteaucitron in my console, it does exists.
I struggle with adding tarteaucitron.js to a NextJS 13 website. Tarteaucitron is a js helper to manage cookie acceptation.
Here is my code: line 61 I have a Script component to include tarteaucitron.js, then I can tarteaucitron.init() line 87.
I don't understand at all since when I call tarteaucitron in my console, it does exists.
2 Replies
Shouldn't you install package with a package manager and directly call it in code?
https://www.npmjs.com/package/tarteaucitronjs
https://www.npmjs.com/package/tarteaucitronjs
Purple Martin
Have you found a workaround. ?