Next.js Discord

Discord Forum

Can't resolve private-next-app-dir/page

Answered
Cape lion posted this in #help-forum
Open in Discord
Cape lionOP
Hi! I'm using Next.js 15.4.5 with the app router. When running "npm x next dev", I get:

$ npm x next dev
 ▲ Next.js 15.4.5
   - Local:        http://localhost:3000
   - Network:      http://192.168.30.133:3000

 ✓ Starting...
 ✓ Ready in 2.6s
 ○ Compiling /_not-found ...
 ✓ Compiled /_not-found in 1673ms (504 modules)
 ⚠ Fast Refresh had to perform a full reload due to a runtime error.
 GET /_next/static/webpack/a04c7a3f6cccb24e.webpack.hot-update.json 404 in 2322ms
 ○ Compiling / ...
 ⨯ src/app/page.tsx
Can't resolve private-next-app-dir/page
 ⨯ src/app/@navigation/page.tsx
Can't resolve private-next-app-dir/page
 ⨯ src/app/@navigation/page.tsx
Can't resolve private-next-app-dir/page
 GET / 500 in 740ms


I have cleared my .next and node_modules. My next.config.ts is entirely default.

What can I do to resolve this?
Answered by Cape lion
I found the problem: public was not in a subdirectory of src.
View full answer

1 Reply

Cape lionOP
I found the problem: public was not in a subdirectory of src.
Answer