nuxt-icons icon indicating copy to clipboard operation
nuxt-icons copied to clipboard

Cannot start nuxt: nuxtCtx.tryUse is not a function

Open oyedejioyewole opened this issue 2 years ago • 3 comments

When I added nuxt-icons to the modules array in the nuxt.config.js I get the following error while and after server restart

ERROR  Cannot start nuxt:  nuxtCtx.tryUse is not a function                              16:58:59

  at useNuxt (node_modules/nuxt-icons/node_modules/@nuxt/kit/dist/index.mjs:47:28)
  at addTemplate (node_modules/nuxt-icons/node_modules/@nuxt/kit/dist/index.mjs:58:16)
  at setup (node_modules/nuxt-icons/dist/module.mjs:18:5)
  at Object.normalizedModule (node_modules/nuxt-icons/node_modules/@nuxt/kit/dist/index.mjs:624:29)
  at async installModule (node_modules/@nuxt/kit/dist/index.mjs:432:3)
  at async initNuxt (node_modules/nuxt/dist/index.mjs:1362:7)
  at async load (node_modules/nuxi/dist/chunks/dev.mjs:6750:9)
  at async Object.invoke (node_modules/nuxi/dist/chunks/dev.mjs:6795:5)
  at async _main (node_modules/nuxi/dist/cli.mjs:46:20)

oyedejioyewole avatar Aug 11 '22 16:08 oyedejioyewole

Could you write more about your environment in which the error occurs? Version of nuxt, operating system etc.

gitFoxCode avatar Aug 11 '22 17:08 gitFoxCode

I got the same error with Nuxt 3.0.0-rc.4

durbanitas avatar Aug 19 '22 12:08 durbanitas

@gitFoxCode my environment for the project is


  • Operating System: Linux
  • Node Version: v16.16.0
  • Nuxt Version: 3.0.0-rc.1
  • Package Manager: [email protected]
  • Builder: vite
  • User Config: typescript, modules, app, buildModules, googleFonts
  • Runtime Modules: @nuxtjs/[email protected]
  • Build Modules: @nuxtjs/[email protected]

oyedejioyewole avatar Aug 30 '22 13:08 oyedejioyewole

@OyewoleOyedeji @durbanitas The latest version, available on the newly released stable nuxt 3.0.0 no longer contains such bugs

gitFoxCode avatar Nov 17 '22 14:11 gitFoxCode