nuxt: Error: EISDIR: illegal operation on a directory, readlink '\node_modules\node-fetch-native\dist\polyfill.mjs
Environment
Nuxi 3.5.0 13:48:03
13:48:04
RootDir: D:/DEVELOPMENT/PROJECTS/projectX 13:48:04
Nuxt project info: 13:48:04
- Operating System: Windows_NT
- Node Version: v16.13.1
- Nuxt Version: 3.5.0
- Nitro Version: 2.4.1
- Package Manager: yarn@1.21.1
- Builder: vite
- User Config: googleFonts, app, modules, swiper, runtimeConfig, routeRules, buildModules
- Runtime Modules: @nuxtjs/tailwindcss@6.7.0, nuxt-swiper@1.1.0
- Build Modules: @nuxtjs/google-fonts@3.0.0
👉 Report an issue: https://github.com/nuxt/nuxt/issues/new 13:48:04
👉 Suggest an improvement: https://github.com/nuxt/nuxt/discussions/new
👉 Read documentation: https://nuxt.com
Reproduction
I can’t create a reproduction except the repo itself, but got that only private.
nuxt.config.ts `// https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({
googleFonts: {
families: {
Montserrat: {
wght: [300, 500],
ital: [200]
},
download: true
}
},
app: {
buildAssetsDir: 'bestanden',
baseURL: '/',
pageTransition: { name: 'page', mode: 'out-in' },
rootId: 'application',
rootTag: 'tlb'
},
modules: [
'@nuxtjs/tailwindcss',
['nuxt-swiper']
],
swiper: {
// Swiper options
//----------------------
// prefix: 'Swiper',
// styleLang: 'css',
// modules: ['navigation', 'pagination'], // all modules are imported by default
},
runtimeConfig: {
public: {
headlessUrl: 'https://api.domain.nl/graphql'
}
},
// cached en wordt in de achtergrond geupdated
routeRules: {
'/**': {
// swr: true
isr: true
}
},
buildModules: [
'@nuxtjs/google-fonts'
],
}) `
package.json
{ "name": "ProjectX", "private": true, "scripts": { "build": "nuxt build", "dev": "nuxt dev", "generate": "nuxt generate", "preview": "nuxt preview", "postinstall": "nuxt prepare" }, "devDependencies": { "@nuxtjs/tailwindcss": "^6.6.4", "nuxt": "^3.5.0" }, "dependencies": { "@morev/vue-transitions": "^2.3.6", "@nuxtjs/google-fonts": "^3.0.0", "nuxt-swiper": "^1.1.0" } }
tailwind.config.ts `module.exports = {
content: [ ‘./pages//*.{html,js}', './components//*.{html,js}’, ] }`
tsconfig.json
{ // https://nuxt.com/docs/guide/concepts/typescript "extends": "./.nuxt/tsconfig.json" }
Describe the bug
yarn run v1.21.1
$ nuxt build
Nuxi 3.5.0 13:41:15
Nuxt 3.5.0 with Nitro 2.4.1 13:41:15
ℹ Using default Tailwind CSS file nuxt:tailwindcss 13:41:18
ℹ Building client… 13:41:25
ℹ vite v4.3.7 building for production… 13:41:25
ℹ ✓ 252 modules transformed. 13:41:31
ℹ .nuxt/dist/client/manifest.json 1.92 kB │ gzip: 0.45 kB 13:41:31
ℹ .nuxt/dist/client/bestanden/entry.f43d31f8.css 14.48 kB │ gzip: 3.60 kB 13:41:31
ℹ .nuxt/dist/client/bestanden/swiper-vue.78ee92f5.css 18.03 kB │ gzip: 4.72 kB 13:41:31
ℹ .nuxt/dist/client/bestanden/Post.vue.3f094092.js 0.59 kB │ gzip: 0.40 kB 13:41:31
ℹ .nuxt/dist/client/bestanden/error-component.96b3f36b.js 0.89 kB │ gzip: 0.58 kB 13:41:31
ℹ .nuxt/dist/client/bestanden/index.f9cb9b01.js 3.52 kB │ gzip: 1.47 kB 13:41:31
ℹ .nuxt/dist/client/bestanden/…uri.f6aa3b56.js 7.91 kB │ gzip: 2.66 kB 13:41:31
ℹ .nuxt/dist/client/bestanden/entry.670c8e30.js 91.62 kB │ gzip: 33.75 kB 13:41:31
ℹ .nuxt/dist/client/bestanden/swiper-vue.a66ed395.js 154.42 kB │ gzip: 52.57 kB 13:41:31
ℹ ✓ built in 6.06s 13:41:31
✔ Client built in 6090ms 13:41:31
ℹ Building server… 13:41:31
ℹ vite v4.3.7 building SSR bundle for production… 13:41:31
ℹ ✓ 96 modules transformed. 13:41:35
ℹ .nuxt/dist/server/bestanden/app-styles.051f4cbc.mjs 0.08 kB 13:41:35
ℹ .nuxt/dist/server/bestanden/TheHeader-styles.0a83cbfe.mjs 0.08 kB 13:41:35
ℹ .nuxt/dist/server/styles.mjs 0.26 kB 13:41:35
ℹ .nuxt/dist/server/bestanden/TheHeader-styles-1.mjs-007c59f5.js 0.24 kB │ map: 0.12 kB 13:41:35
ℹ .nuxt/dist/server/bestanden/island-renderer-2f1b33cf.js 1.21 kB │ map: 1.42 kB 13:41:35
ℹ .nuxt/dist/server/bestanden/error-component-97e249a9.js 1.83 kB │ map: 1.04 kB 13:41:35
ℹ .nuxt/dist/server/bestanden/app-styles-1.mjs-805d2c94.js 2.31 kB │ map: 0.11 kB 13:41:35
ℹ .nuxt/dist/server/bestanden/Post-6fd2de85.js 2.65 kB │ map: 0.16 kB 13:41:35
ℹ .nuxt/dist/server/bestanden/index-ad7a4d5a.js 6.58 kB │ map: 6.78 kB 13:41:35
ℹ .nuxt/dist/server/bestanden/…uri-0380bd69.js 12.03 kB │ map: 12.36 kB 13:41:35
ℹ .nuxt/dist/server/bestanden/css-styles-1.mjs-88dfc73a.js 12.43 kB │ map: 0.11 kB 13:41:35
ℹ .nuxt/dist/server/server.mjs 58.12 kB │ map: 119.02 kB 13:41:35
ℹ ✓ built in 3.74s 13:41:35
✔ Server built in 3788ms 13:41:35
✔ Generated public .output/public nitro 13:41:35
ℹ Building Nitro Server (preset: node-server) nitro 13:41:35
ERROR Error: EISDIR: illegal operation on a directory, readlink ‘D:\DEVELOPMENT\PROJECTS\projectX\node_modules\node-fetch-native\dist\polyfill.mjs’ nitro 13:42:14
undefined
ERROR EISDIR: illegal operation on a directory, readlink ‘D:\DEVELOPMENT\PROJECTS\projectX\node_modules\node-fetch-native\dist\polyfill.mjs’
Additional context
No response
Logs
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 23 (4 by maintainers)
@TinyLightBold When I run the code via ‘yarn dev’, it works well, I didn’t got any errors in the devtool. This issue was found in ‘yarn build’. PS: My system in windows 11 64bit
@TinyLightBold Yes, my node-fetch-native is 1.1.1 too.
It sounds like it might be an issue that only reproduces on windows, in that case. I’ll reopen and we can investigate further.
Would you try running:
@danielroe I gave you an invite on my repo