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 Sep 29, 2023
1 parent 1cdbcfc commit 635ad37
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 45 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`.
91 changes: 46 additions & 45 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 @@ -79,6 +79,7 @@
"@clerk/clerk-react": "^4.26.1",
"@clerk/clerk-sdk-node": "^4.12.10",
"@clerk/types": "^3.53.0",
"@clerk/shared": "0.24.0",
"path-to-regexp": "6.2.1",
"tslib": "2.4.1"
},
Expand Down

0 comments on commit 635ad37

Please sign in to comment.