andrezimpel / gatsby-plugin-gdpr-cookies

Gatsby plugin to add Google Analytics (V4 is supported), Google Tag Manager, Facebook Pixel, TikTok Pixel and Hotjar in a GDPR form to your site.
Apache License 2.0
101 stars 69 forks source link

Gatsby v5 support #99

Open artem-metliakov opened 1 year ago

artem-metliakov commented 1 year ago

Is your feature request related to a problem? Please describe. Try to update gatsby to version 5. The plugin is not compatible with Gatsby 5

npm i gatsby-plugin-gdpr-cookies: Found: gatsby@5.5.0

Could not resolve dependency: peer gatsby@"^2.24.77 || ^3.0.0 || ^4.0.0" from gatsby-plugin-gdpr-cookies@2.0.9

Describe the solution you'd like The plugin is compatible with Gatsby 5

rostacik commented 1 year ago

it seems like code in github is v5 compatible

https://github.com/andrezimpel/gatsby-plugin-gdpr-cookies/blob/master/package.json#L51

so a "hothot" fix might be you install this plugin from github repo - something like npm install https://github.com/andrezimpel/gatsby-plugin-gdpr-cookies.git

which will make something like "gatsby-plugin-gdpr-cookies": "github:andrezimpel/gatsby-plugin-gdpr-cookies", in package.json

artem-metliakov commented 1 year ago

Thank you! It worked. But it's good to have a regular release on NPM

rostacik commented 1 year ago

@artem-metliakov sure thing, maybe they forgot to bump up the version number since it seems the same, not sure really but outcome is things are broken on my box too like you described from npm

xSyki commented 1 year ago

@andrezimpel Could you release a new version on npm that supports gatsby 5? These fixes are already on master.

kubacichorski commented 1 year ago

@andrezimpel any updates on this?

apmsooner commented 1 year ago

Experiencing this too. @andrezimpel - can you please kick off a new release?

ArmanNisch commented 1 year ago

+1

magixpaul commented 1 year ago

+1 if this could be updated in NPM that would be awesome

jamiefrew commented 1 year ago

+1

Lornz- commented 1 year ago

+1

spencerwhyte commented 1 year ago

+1

Right now I have resorted to using the package from my personal scope:

"@spencerwhyte/gatsby-plugin-gdpr-cookies": "^2.0.9"

ordishc commented 1 year ago

+1 Agreed - if this could be updated in NPM that would be awesome and really helpful.

annaferry commented 1 year ago

+1

tasesmuemils commented 1 year ago

+1

Dinkelborg commented 11 months ago

How is this still an issue in November 23?

jen-prince commented 11 months ago

+1

grahamkane commented 9 months ago

Install with the legacy peer deps flag, if you want npm to ignore the version mismatch:

npm install --save gatsby-plugin-gdpr-cookies --legacy-peer-deps