next-learn
next-learn copied to clipboard
Learn Next.js Starter Code
If you use this code: [`dashboard/starter-example/app/ui/invoices/pagination.tsx`](https://github.com/vercel/next-learn/blob/main/dashboard/starter-example/app/ui/invoices/pagination.tsx) when the number of pages is more than 7, the error 'duplicated mapping key' will appear. Because, under certain conditions, the generatePagination function returns...
I just worked through chapter 14 and took note that TypeScript complains when using `useFormState` because the action functions (`createInvoice` and `updateInvoice`) differ in type from the `initialState` being passed....
# Steps to reproduce Following https://nextjs.org/learn/dashboard-app/getting-started 1. run ```sh npx create-next-app@latest nextjs-dashboard --use-npm --example "https://github.com/vercel/next-learn/tree/main/dashboard/starter-example" cd nextjs-dashboard npm i npm run dev ``` 1. go to http://localhost:3000/ The arrow icon...
There is no path for this: import { lusitana } from '@/app/ui/fonts';
## Problem In the [Updating login form](https://github.com/nextauthjs/next-auth/issues/9192) step, the action needs to have the `'use server'` directive in the beginning of the file. This is contained in the [source code](https://github.com/vercel/next-learn/blob/main/dashboard/final-example/app/lib/actions.ts#L1),...
https://nextjs.org/learn/dashboard-app/css-styling  There's an unnecessary semicolon after a JSX tag.
when I execute 'npm run seed', throw a error.  seed > node -r dotenv/config ./scripts/seed.js An error occurred while attempting to seed the database: VercelPostgresError: VercelPostgresError - 'missing_connection_string ':...
I have reached chapter 12 Mutating Data. In Creating an invoice, when 3: Extract the data from formdata I follow the code: `// Test it out: console.log(rawFormData);` but I can't...
hi , i am running into this issue when following the tutorial at https://nextjs.org/learn/dashboard-app/getting-started **Could not locate the repository for "https://github.com/vercel/next-learn/tree/main/dashboard/starter-example". Please check that the repository exists and try again.**
I am stuck on Chapter 12, section 3 Fetch the specific invoice. I followed the tutorial exactly but when I click the edit invoice button (the pencil), an edit form...