xataio / xataio/examples

sample-next-auth-pages does not build

Open
#516 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
65
Forks
13
Avg merge
1m
Merged PRs (30d)
6

Description

Creating an issue to track a few problems I've found with the app:

  • xata:init in package.json refers to a --schema=schema.template.json when it should be --schema=schema-template.json. Hyphen not period.
  • The app uses getServerSession, which requires the req param to be a NextApiRequest, but the req is a standard Request.
  • References to import { XataClient } from '~/lib/xata.codegen' should be updated to ~/shared/xata.codegen

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in package.json to inspect the xata:init schema filename, then search the sample-next-auth-pages app for getServerSession and XataClient imports. Run the app's build to reproduce the failures; done means the sample builds with the corrected schema path, request type usage, and shared XataClient import path.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, typescript
Domain
full-stack
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.