next-learn icon indicating copy to clipboard operation
next-learn copied to clipboard

Docs: Learn Next.js Chapter 9 Streaming

Open PhilibertEtienne opened this issue 2 years ago • 2 comments

What is the improvement or update you wish to see?

Hello, search on the internet but found no answer. When creating the parenthesis folder /(overview) i get this error when compiling :

uncaughtException: Error: . is neither a posix nor a windows path, and there is no 'join' method defined in the file system at join (C:\Users\ ... \ webpack\bundle5.js:30:1369232 )

Is there any context that might help us understand?

Here is my package.json if it can help

{ "private": true, "scripts": { "build": "next build", "dev": "next dev", "start": "next start", "seed": "node -r dotenv/config ./scripts/seed.js" }, "dependencies": { "@heroicons/react": "^2.0.18", "@tailwindcss/forms": "^0.5.6", "@types/node": "20.5.7", "@vercel/postgres": "^0.5.1", "autoprefixer": "10.4.15", "bcrypt": "^5.1.1", "clsx": "^2.0.0", "next": "^14.0.2", "postcss": "8.4.31", "react": "18.2.0", "react-dom": "18.2.0", "tailwindcss": "3.3.3", "typescript": "5.2.2", "zod": "^3.22.2" }, "devDependencies": { "@types/bcrypt": "^5.0.1", "@types/react": "18.2.21", "@types/react-dom": "18.2.14", "dotenv": "^16.3.1", "eslint": "^8.52.0", "eslint-config-next": "^14.0.0", "prettier": "^3.0.3" }, "engines": { "node": ">=18.17.0" } }

Does the docs page already exist? Please link to it.

https://nextjs.org/learn/dashboard-app/streaming

PhilibertEtienne avatar Nov 23 '23 13:11 PhilibertEtienne

I'm facing exactly the same problem, following the classes and the template suggested to learn nextJs, in the streaming part we're going to start using groups of routes and I create a folder (nameThePast) the same problem occurs and so far I haven't found any solution.

Bruno-freire avatar Nov 27 '23 22:11 Bruno-freire

I hit the same error recently on my own project. In my case I was running on Windows though, and using dynamic routing (paths with square brackets, e.g.: app/foo/[id]/page.tsx). Running the same project under WSL (Windows Subsystem for Linux) on the same Windows machine seemed to work just fine. I'm on Next.js v14.0.3.

For reference: https://stackoverflow.com/questions/77506452/nextjs-groupe-routing-compiling-error-neither-a-posix-nor-a-windows-path/

brunokc avatar Dec 15 '23 08:12 brunokc

Sounds like for Windows users, you should consider using WSL. I am not able to reproduce this. Please open a new issue if you are still having trouble here. Thank you!

leerob avatar Jun 23 '24 22:06 leerob