gitFoxCode / nuxt-icons

Module for Nuxt allowing pleasant use of svg icons
192 stars 23 forks source link

Cannot start nuxt: nuxtCtx.tryUse is not a function #8

Closed oyedejioyewole closed 1 year ago

oyedejioyewole commented 2 years ago

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)
gitFoxCode commented 2 years ago

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

durbanitas commented 2 years ago

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

oyedejioyewole commented 2 years ago

@gitFoxCode my environment for the project is


gitFoxCode commented 1 year ago

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