Next.js Discord

Discord Forum

illegal operation on a directory by styled-jsx

Answered
English Lop posted this in #help-forum
Open in Discord
English LopOP
Hello, I'm trying to export my project as static with next build --turbopack, but when trying to do this, I get this error :
[Error: EISDIR: illegal operation on a directory, readlink 'D:\Sites\website\node_modules\styled-jsx\style.js'] {
  errno: -4068,
  code: 'EISDIR',
  syscall: 'readlink',
  path: 'D:\\Sites\\website\\node_modules\\styled-jsx\\style.js'
}
Here's my tsconfig.json:
{
  "compilerOptions": {
    "baseUrl": ".",
    "target": "ES2017",
    "lib": [
      "dom",
      "dom.iterable",
      "esnext"
    ],
    "allowJs": true,
    "skipLibCheck": true,
    "strict": true,
    "noEmit": true,
    "esModuleInterop": true,
    "module": "esnext",
    "moduleResolution": "bundler",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "incremental": true,
    "plugins": [
      {
        "name": "next"
      }
    ],
    "paths": {
      "@/*": [
        "./src/*"
      ]
    },
    "jsx": "preserve"
  },
  "include": [
    "next-env.d.ts",
    "**/*.ts",
    "**/*.tsx",
    ".next/types/**/*.ts"
  ],
  "exclude": [
    "node_modules"
  ]
}
Answered by English Lop
The problem was that my storage used exFAT and not NTFS, works on a NTFS storage
View full answer

3 Replies

English LopOP
I use tailwind and turbopack
English LopOP
The problem was that my storage used exFAT and not NTFS, works on a NTFS storage
Answer
English LopOP
can someone marks as answered with my sentence up ?