PiwikPRO/next-piwik-pro

Separate version of Next.js installed when next-piwik-pro is installed

Closed this issue · 1 comments

Steps to reproduce:

  • Install Next.js
  • Install @piwikpro/next-piwik-pro

Expected result:
@piwikpro/next-piwik-pro uses existing copy of Next.js

Actual result:
next-piwik-pro installs its own version of Next.js 12

Suggested fix:

It appears that the only reason Next.js is a dependency of @piwikpro/next-piwik-pro is this line:

import Script from 'next/script'

Given that:

I believe it's safe to:

  • Move next to peerDependencies,
  • Loosen version requirements to ^11.0.0 || ^12.0.0 || ^13.0.0, every version of Next.js supporting next/script according to its Version History.

Workaround:

With Yarn:

  "resolutions": {
    "@piwikpro/next-piwik-pro/next": "<your_package_version>"
  },

Already resolved. Please check the newest version