Skip to content

Commit 488bc28

Browse files
committed
fix(nextjs): Add @clerk/shared as dependency in package.json
Even though we had imports of `@clerk/shared` the dependency was missing from package.json of `@clerk/nextjs` and the `@clerk/shared` defined in `@clerk/clerk-react` package.json was used (that's why no error was raised from the imports).
1 parent 1cdbcfc commit 488bc28

3 files changed

Lines changed: 67 additions & 45 deletions

File tree

.changeset/sweet-bottles-watch.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@clerk/backend': patch
3+
'@clerk/nextjs': patch
4+
'@clerk/shared': patch
5+
---
6+
7+
Restore reverted commits from https://github.com/clerkinc/javascript/pull/1806 and fixed issue with `createContext only works in Client Components` error raised from `@clerk/nextjs`.

package-lock.json

Lines changed: 59 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/nextjs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"@clerk/clerk-react": "^4.26.1",
8080
"@clerk/clerk-sdk-node": "^4.12.10",
8181
"@clerk/types": "^3.53.0",
82+
"@clerk/shared": "0.24.0",
8283
"path-to-regexp": "6.2.1",
8384
"tslib": "2.4.1"
8485
},

0 commit comments

Comments
 (0)