nuxt / icon

The <Icon> component, supporting Iconify, Emojis and custom components.

Home Page:https://stackblitz.com/edit/nuxt-icon-playground?file=app.vue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could not load

youkei-zzz opened this issue · comments

commented

When I try to use nuxt build or nuxt generate in nuxt3.9.1, the following error will appear. If I delete the nuxt-icon module in nuxt.config.ts, this will not happen.

`
ERROR [vite:vue] Could not load C:/Users/xxx/\u684C\u9762/myTourSite_nuxt/node_modules/.pnpm/nuxt-icon@0.6.8_nuxt@3.9.1_rollup@2.79.1_vite@5.0.10_vue@3.4.10/node_modules/nuxt-icon/dist/runtime/IconCSS.vue?vue&type=style&index=0&scoped=e3123322&lang.css?inline&used: ENOENT: no such file or directory, open 'C:\Users\xxx\u684C\u9762\myTourSite_nuxt\node_modules.pnpm\nuxt-icon@0.6.8_nuxt@3.9.1_rollup@2.79.1_vite@5.0.10_vue@3.4.10\node_modules\nuxt-icon\dist\runtime\IconCSS.vue'

[21:38:25] ERROR Nuxt Build Error: Could not load C:/Users/xxx/\u684C\u9762/myTourSite_nuxt/node_modules/.pnpm/nuxt-icon@0.6.8_nuxt@3.9.1_rollup@2.79.1_vite@5.0.10_vue@3.4.10/node_modules/nuxt-icon/dist/runtime/IconCSS.vue?vue&type=style&index=0&scoped=e3123322&lang.css?inline&used: ENOENT: no such file or directory, open 'C:\Users\xxx\u684C\u9762\xxx\node_modules.pnpm\nuxt-icon@0.6.8_nuxt@3.9.1_rollup@2.79.1_vite@5.0.10_vue@3.4.10\node_modules\nuxt-icon\dist\runtime\IconCSS.vue'

at Object.readFileSync (node:fs:453:20)
at getDescriptor (/C:/Users/xxx/%E6%A1%8C%E9%9D%A2/xxx/node_modules/.pnpm/@vitejs+plugin-vue@5.0.2_vite@5.0.11_vue@3.4.10/node_modules/@vitejs/plugin-vue/dist/index.mjs:103:18)
at Object.load (/C:/Users/xxx/%E6%A1%8C%E9%9D%A2/xxx/node_modules/.pnpm/@vitejs+plugin-vue@5.0.2_vite@5.0.11_vue@3.4.10/node_modules/@vitejs/plugin-vue/dist/index.mjs:2874:28)
at Object.handler (/C:/Users/xxx/%E6%A1%8C%E9%9D%A2/xxx/node_modules/.pnpm/vite@5.0.11/node_modules/vite/dist/node/chunks/dep-V3BH7oO1.js:67398:19)
at /C:/Users/xxx/%E6%A1%8C%E9%9D%A2/xxx/node_modules/.pnpm/rollup@4.9.2/node_modules/rollup/dist/es/shared/node-entry.js:18642:40
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async PluginDriver.hookFirstAndGetPlugin (/C:/Users/xxx/%E6%A1%8C%E9%9D%A2/xxx/node_modules/.pnpm/rollup@4.9.2/node_modules/rollup/dist/es/shared/node-entry.js:18542:28)
at async /C:/Users/xxx/%E6%A1%8C%E9%9D%A2/xxx/node_modules/.pnpm/rollup@4.9.2/node_modules/rollup/dist/es/shared/node-entry.js:17712:33
at async Queue.work (/C:/Users/xxx/%E6%A1%8C%E9%9D%A2/xxx/node_modules/.pnpm/rollup@4.9.2/node_modules/rollup/dist/es/shared/node-entry.js:18752:32)
`