vercel / vercel/next-learn

chapter 12 :Creating an invoice

Open
#514 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
4.8k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

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 find any log
I continue to the last. It should redirect, but nothing happen.

I guess async function createInvoice(formData: FormData) not be reached.
But I don't know how to fix it.

the code is on
https://github.com/liwenz/nextjs-dashboard

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 with chapter 12, “Creating an invoice,” in the linked nextjs-dashboard repository and inspect the createInvoice(formData) step around the rawFormData console log. Reproduce the missing log and redirect, then determine whether the form reaches that function; done means the logged form data appears and the tutorial flow redirects as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
next.js, typescript
Domain
full-stack
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.