Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pnpm support in Sanity example #63249

Merged
merged 1 commit into from
Mar 13, 2024
Merged

Fix pnpm support in Sanity example #63249

merged 1 commit into from
Mar 13, 2024

Conversation

stipsan
Copy link
Contributor

@stipsan stipsan commented Mar 13, 2024

As @sanity/preview-url-secret wasn't declared as a dependency when doing:

pnpm install && pnpm build

It would fail to compile:

Linting and checking validity of types  .Failed to compile.

./app/api/draft/route.tsx:6:36
Type error: Cannot find module '@sanity/preview-url-secret' or its corresponding type declarations.

  4 |  */
  5 |
> 6 | import { validatePreviewUrl } from "@sanity/preview-url-secret";
    |                                    ^
  7 | import { draftMode } from "next/headers";
  8 | import { redirect } from "next/navigation";
  9 |

@stipsan stipsan requested review from a team as code owners March 13, 2024 17:41
@stipsan stipsan requested review from timeyoutakeit and molebox and removed request for a team March 13, 2024 17:41
@ijjk ijjk added the examples Issue/PR related to examples label Mar 13, 2024
@samcx samcx added the CI approved Approve running CI for fork label Mar 13, 2024
@samcx samcx enabled auto-merge (squash) March 13, 2024 17:51
@samcx samcx merged commit aeb4d72 into vercel:canary Mar 13, 2024
30 checks passed
@samcx samcx removed the CI approved Approve running CI for fork label Mar 13, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
examples Issue/PR related to examples locked
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants