Cannot read properties of undefined (reading 'provider') - nuxt apps not starting anymore
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 28/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- nuxt, typescript
Research direction
Start by inspecting @nuxt/icon/dist/runtime/plugin.js at line 16 and the generated .nuxt/plugins/server.mjs stack entry, then compare the module versions and nuxt.config.ts settings described in the report. Reproduce the startup failure and identify the dependency or configuration combination causing the undefined provider; done means the Nuxt app starts without this error.
Written by the indexing model from the issue text.
Description
Environment
- Operating System: Windows_NT
- Node Version: v22.9.0
- Nuxt Version: 3.13.2
- CLI Version: 3.14.0
- Nitro Version: 2.9.7
- Package Manager: [email protected]
- Builder: -
- User Config: -
- Runtime Modules: -
- Build Modules: -
Reproduction
I haven't changed the code itself, but uninstalled some dependencies and updated everything to latest.
Modules used:
modules: [
"@unocss/nuxt",
"@nuxt/content",
"@vueuse/nuxt",
"@nuxt/fonts",
// @ts-ignore
"@nuxtjs/seo",
"@nuxt/icon",
"nuxt-umami"
],
Dependencies upgraded:
Transitive deps of "@nuxt/icon"
I've tried it with and without the icon config in nuxt.config.ts with no effect
Describe the bug
I`m suddenly getting this error after upgrading a few dependencies and the site is not loading anymore.
Additional context
No response
Logs
Cannot read properties of undefined (reading 'provider')
Stacktrace
setup
@nuxt/icon/dist/runtime/plugin.js:16:17
(anonymous)
./C:/Users/MyPC/Workspace/my-project/apps/my-app/virtual:nuxt:C:/Users/MyPC/Workspace/my-project/apps/my-app/.nuxt/plugins/server.mjs:77:89
Module.executeAsync
unctx/dist/index.mjs:111:19
setup
./C:/Users/MyPC/Workspace/my-project/apps/my-app/virtual:nuxt:C:/Users/MyPC/Workspace/my-project/apps/my-app/.nuxt/plugins/server.mjs:77:65
(anonymous)
nuxt/dist/app/nuxt.js:146:60
fn
nuxt/dist/app/nuxt.js:228:44
Object.callAsync
unctx/dist/index.mjs:68:55
(anonymous)
nuxt/dist/app/nuxt.js:231:56
Object.runWithContext
@vue/runtime-core/dist/runtime-core.cjs.js:3940:18
callWithNuxt
nuxt/dist/app/nuxt.js:231:24
Besides these logs from the devtools plugins I see nothing in the actual logs, even with debug and dev flag
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 97
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nuxt/icon
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
-
Allow separate providers for SSR and client (`provider: { server, client }`)Possibly taken @pont1s claimed this 24 days ago. Open
Difficulty 5/5 Over a week Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
-
Remote server bundle duplicates concurrent collection downloadsPossibly taken @onmax claimed this 47 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
Similar issues
-
bug P3 UI/UX
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
StellarState/SS-backend#712 ·
Maintainers usually reply within 1 day
-
area: backend bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
snapotter-hq/SnapOtter#3473 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
gitroomhq/postiz-app#2304 ·
Maintainers usually reply within 1 day
-
harlan-agent-ready-to-implement routine:ci-review
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
harlan-zw/unlighthouse#454 · 2 comments ·
Maintainers usually reply within 1 day