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

Builder SDK returns undefined with NextJS app router #2851

Open
DanCookeWillow opened this issue Nov 21, 2023 · 0 comments
Open

Builder SDK returns undefined with NextJS app router #2851

DanCookeWillow opened this issue Nov 21, 2023 · 0 comments
Labels

Comments

@DanCookeWillow
Copy link

DanCookeWillow commented Nov 21, 2023

Describe the bug
Following the integration guide for NextJs 13 with app router results in content being undefined - however it logs out the URL in the terminal, and hitting this URL directly in my browser returns data, so it seems like the issue is with the Next13 integration

With the components generated by the builder dev tooling

Expected behavior
I expect the same data i would get from hitting the API myself

Versions

Node: 20.6.1
MacOs 13.4
    "@builder.io/dev-tools": "^0.2.3",
    "@builder.io/react": "^3.1.1",
    "@builder.io/sdk": "^2.1.1",
    "@portabletext/react": "^3.0.11",
    "@sanity/block-content-to-markdown": "^0.0.5",
    "@sanity/client": "^6.7.0",
    "@types/node": "20.5.7",
    "@types/react": "18.2.21",
    "@types/react-dom": "18.2.7",
    "@vercel/analytics": "^1.0.2",
    "class-variance-authority": "^0.7.0",
    "clsx": "^2.0.0",
    "date-fns": "^2.30.0",
    "eslint": "8.48.0",
    "eslint-config-next": "13.4.19",
    "framer-motion": "^10.16.2",
    "lucide-react": "^0.292.0",
    "next": "13.4.19",
    "postcss": "8.4.29",
    "qs": "^6.11.2",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-icons": "^4.10.1",
    "react-markdown": "^9.0.0",
    "react-toastify": "^9.1.3",
    "tailwind-merge": "^2.0.0",
    "tailwindcss": "3.3.3",
    "tailwindcss-animate": "^1.0.7",
    "tailwindcss-animated": "^1.0.1",
    "typescript": "5.2.2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants