nuxt / nuxt/icon

Could not load

Open
#135 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.2k
Forks
96
Avg merge
8h 12m
Merged PRs (30d)
2

Description

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)
`

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with nuxt build or nuxt generate while nuxt-icon remains configured in nuxt.config.ts. Start by inspecting the reported nuxt-icon/dist/runtime/IconCSS.vue path and the build error; done means both commands complete without the ENOENT error.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, typescript, vite
Domain
build-system, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.