Skip to content

Instantly share code, notes, and snippets.

@gthieleb
Created November 17, 2025 14:25
Show Gist options
  • Select an option

  • Save gthieleb/cbf278fdd1314f1acc5d307cfb56b127 to your computer and use it in GitHub Desktop.

Select an option

Save gthieleb/cbf278fdd1314f1acc5d307cfb56b127 to your computer and use it in GitHub Desktop.
nextjs error log
yarn create next-app@latest my-app --yes
cd my-app
yarn dev
➤ YN0000: · Yarn 4.5.0
➤ YN0000: ┌ Resolution step
➤ YN0085: │ + create-next-app@npm:16.0.3
➤ YN0000: └ Completed in 0s 654ms
➤ YN0000: ┌ Fetch step
➤ YN0013: │ A package was added to the project (+ 997.66 KiB).
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed
➤ YN0000: · Done in 0s 781ms
Initializing project with template: app-tw
Installing dependencies:
- next
- eslint-config-next
- tailwindcss
- typescript
➤ YN0088: A new stable version of Yarn is available: 4.11.0!
➤ YN0088: Upgrade now by running yarn set version 4.11.0
➤ YN0000: · Yarn 4.5.0
➤ YN0000: ┌ Resolution step
➤ YN0085: │ + @tailwindcss/postcss@npm:4.1.17, @types/node@npm:20.19.25, @types/react-dom@npm:19.2.3, @types/react@npm:19.2.5, and 424 more.
➤ YN0000: └ Completed in 42s 772ms
➤ YN0000: ┌ Fetch step
➤ YN0013: │ 3 packages were added to the project (+ 3.72 MiB).
➤ YN0000: └ Completed in 1s 54ms
➤ YN0000: ┌ Link step
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0007: │ unrs-resolver@npm:1.11.1 must be built because it never has been before or the last one failed
➤ YN0007: │ sharp@npm:0.34.5 must be built because it never has been before or the last one failed
➤ YN0000: └ Completed in 2s 773ms
➤ YN0000: · Done with warnings in 46s 683ms
Generating route types...
✓ Types generated successfully
Initialized a git repository.
Success! Created my-app at /home/myuser/Development/Projects/HYFE/strapi-poc/my-app
▲ Next.js 16.0.3 (Turbopack)
- Local: http://localhost:3000
- Network: http://10.255.255.254:3000
✓ Starting...
Error: Turbopack build failed with 1 errors:
./app
Error: Next.js inferred your workspace root, but it may not be correct.
We couldn't find the Next.js package (next/package.json) from the project directory: /home/myuser/Development/Projects/HYFE/strapi-poc/my-app/app
To fix this, set turbopack.root in your Next.js config, or ensure the Next.js package is resolvable from this directory.
Note: For security and performance reasons, files outside of the project directory will not be compiled.
See https://nextjs.org/docs/app/api-reference/config/next-config-js/turbopack#root-directory for more information.
at ignore-listed frames
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment