Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

sdk nextjs: add react

Carl-Gerhard Lindesvärd8baf1511122a
diff --git a/packages/sdks/nextjs/index.tsx b/packages/sdks/nextjs/index.tsx
index 36dc4a8e6..204e4f54e 100644
--- a/packages/sdks/nextjs/index.tsx
+++ b/packages/sdks/nextjs/index.tsx
@@ -1,3 +1,4 @@
+import React from 'react';
import Script from 'next/script';
import type {
diff --git a/packages/sdks/nextjs/package.json b/packages/sdks/nextjs/package.json
index 8aa307590..4a3957d86 100644
--- a/packages/sdks/nextjs/package.json
+++ b/packages/sdks/nextjs/package.json
@@ -12,7 +12,9 @@
"@openpanel/web": "workspace:*"
},
"peerDependencies": {
- "next": "^13.0.0"
+ "next": "^14.0.0",
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
},
"devDependencies": {
"@openpanel/eslint-config": "workspace:*",