I got "Error: EISDIR: illegal operation on a directory, readlink..." #77912
Answered
by
Canis-Infinity
Canis-Infinity
asked this question in
Help
-
SummaryI'm got struggled in build app. It works on my Linux but Windows. This is the commands I have used:
And I got ❯ npm run build
> my-app@0.1.0 build
> next build
▲ Next.js 15.2.4
Creating an optimized production build ...
Failed to compile.
Error: EISDIR: illegal operation on a directory, readlink 'D:\desktop\111\my-app\app\favicon.ico'
> Build failed because of webpack errors package.json {
"name": "my-app",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev --turbopack",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"react": "^19.0.0",
"react-dom": "^19.0.0",
"next": "15.2.4"
},
"devDependencies": {
"typescript": "^5",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"eslint": "^9",
"eslint-config-next": "15.2.4",
"@eslint/eslintrc": "^3"
}
}
This is my file tree:
My environment: I have tried:
Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Answered by
Canis-Infinity
Apr 8, 2025
Replies: 1 comment 5 replies
-
Does it work, if you have the project in another disk? Like |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's solved! Thanks for your help!
Solution: The disk needs to be NTFS.