I'm encountering the following issues with my Next.js project:
error - ./node_modules/@distube/ytdl-core/lib/utils.js:2:24
Module not found: Can't resolve 'fs'
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn...
warn - Lockfile was successfully patched, please run "npm install" to ensure @next/swc dependencies are downloaded
Watchpack Error: Error: ENOTDIR: not a directory, scandir '.../node_modules/next/dist/compiled/util/util.js'
-
Steps to Reproduce
- Clone the repo.
- yarn.
- Start the server with yarn dev.
-
Environment
- Node.js Version: v18.20.2
- Yarn Version: 1.22.21
Additional Notes
I've tried removing package-lock.json, updating Yarn, and clearing .next but issues persist.