Skip to content

Commit

Permalink
fix(nextjs): Add @clerk/shared as dependency in package.json
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
dimkl committed Oct 4, 2023
1 parent 63f6cd1 commit 4447ecc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
7 changes: 7 additions & 0 deletions .changeset/sweet-bottles-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@clerk/backend': patch
'@clerk/nextjs': patch
'@clerk/shared': patch
---

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`.
16 changes: 2 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"@clerk/backend": "0.30.1",
"@clerk/clerk-react": "4.26.1",
"@clerk/clerk-sdk-node": "4.12.10",
"@clerk/shared": "0.24.1",
"@clerk/types": "3.53.0",
"path-to-regexp": "6.2.1",
"tslib": "2.4.1"
Expand Down

0 comments on commit 4447ecc

Please sign in to comment.