fireship-io / next13-pocketbase-demo

Demo for the new Next.js 13 features with Pocketbase.
276 stars 139 forks source link

./Create does not exist #15

Open illegitimate-egg opened 2 years ago

illegitimate-egg commented 2 years ago

Problem

When trying to run this codebase upon reaching the notes directory I am confronted by an error stating that it was unable to resolve relate "./Create". It is possible that this is a NEXT 13 issue as it is so new but I'm not so sure

Error

error - [resolve] [project-with-next]/app/notes/page.tsx  Error resolving esm request
  unable to resolve relative "./Create"

  | It was not possible to find the requested file.
  | Parsed request as written in source code: relative "./Create"
  | Path where resolving has started: [project-with-next]/app/notes/page.tsx
  | Type of request: esm request
illegitimate-egg commented 2 years ago

Please man I need this.

mrelbert commented 2 years ago

If you followed the tutorial step by step, you probably created "CreateNote.tsx" instead of "Create.tsx"

illegitimate-egg commented 2 years ago

If you followed the tutorial step by step, you probably created "CreateNote.tsx" instead of "Create.tsx"

I thought the tutorial was actually quite vague, it skips over the creation of some files, it skips over atypical syntax and it also doesn't talk about certain imports that appear through out the video.

yvanchu commented 2 years ago

See PR#8 for the solution