Skip to content

Articles page not working after seeding DB #1053

@JohnAllenTech

Description

@JohnAllenTech

Context

After following README article page doesnt work locally

❌ tRPC failed on post.published: column "Post.slug" must appear in the GROUP BY clause or be used in an aggregate function GET /api/trpc/post.published,tag.get?batch=1&input=%7B%220%22%3A%7B%22json%22%3A%7B%22limit%22%3A15%2C%22sort%22%3A%22newest%22%2C%22tag%22%3Anull%2C%22cursor%22%3Anull%7D%2C%22meta%22%3A%7B%22values%22%3A%7B%22cursor%22%3A%5B%22undefined%22%5D%7D%7D%7D%2C%221%22%3A%7B%22json%22%3Anull%2C%22meta%22%3A%7B%22values%22%3A%5B%22undefined%22%5D%7D%7D%7D 200 in 1455ms

Expected Behavior

Article page working

Current Behavior

Article page not working

Screenshots

Article page not displaying correctly

Steps to reproduce

Please provide detailed steps for reproducing the issue

  1. npm run db:nuke
  2. npm run db:push
  3. npm run db:seed
  4. npm run dev
  5. Navigate to http://localhost:3000/articles and youll see below

Additional info

Provide any additional information here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions