PostHog / PostHog/wizard

Next.js wizard failed to detect `src` folder

Open
#154 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
197
Forks
51
Avg merge
1d 23h
Merged PRs (30d)
94

Description

While using the wizard for Next.js, it failed to detect the src folder and proceeded to place the instrumentation-client.ts file in the src folder.

Not a huge deal, just causes "Failed to fetch" errors which are easy to find solutions for.

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 by reproducing the wizard with a Next.js project that uses a src folder, then inspect the Next.js setup flow responsible for detecting the project layout and placing instrumentation-client.ts. Done means the wizard correctly recognizes the src folder and places the file so the resulting setup does not cause the reported "Failed to fetch" errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
next.js, typescript
Domain
tooling, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.