Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error TS2339: Property 'nuxtIcon' does not exist on type 'AppConfig'. #50

Closed
hermesalvesbr opened this issue Feb 6, 2023 · 10 comments
Closed

Comments

@hermesalvesbr
Copy link

The same of, but with newer version:
Error something on nuxt 3.1.0 - ERROR(vue-tsc) Property 'nuxtIcon' does not exist on type 'AppConfig'. #46

Captura de tela de 2023-02-06 16-21-23
node_modules/.pnpm/nuxt-icon@0.2.10/node_modules/nuxt-icon/dist/runtime/Icon.vue:34:40

  • Operating System: Linux
  • Node Version: v18.13.0
  • Nuxt Version: 3.1.2
  • Nitro Version: 2.1.1
  • Package Manager: yarn@1.22.19
  • Builder: vite
  • User Config: typescript, ssr, runtimeConfig, app, modules, directus, meilisearch
  • Runtime Modules: @nuxtjs/tailwindcss@6.3.1, nuxt-directus@3.2.2, nuxt-meilisearch@0.1.7, nuxt-icon@0.2.10
  • Build Modules: -

My all packages:

dependencies:
@nuxtjs/robots 3.0.0       apexcharts 3.37.0          moment 2.29.4              swiper 9.0.3               vue3-apexcharts 1.4.1      
@nuxtjs/tailwindcss 6.3.1  axios 1.3.2                nuxt-directus 3.2.2        type-check 0.4.0           yarn-upgrade-all 0.7.2     
@vueuse/core 9.12.0        daisyui 2.50.0             sanitize-html 2.9.0        vue-instantsearch 4.8.2    

devDependencies:
@commitlint/cli 17.4.2                   @typescript-eslint/parser 5.51.0         eslint-plugin-prettier 4.2.1             nuxt-icon 0.2.10                         
@commitlint/config-conventional 17.4.2   @vue/eslint-config-standard 8.0.1        eslint-plugin-vue 9.9.0                  nuxt-meilisearch 0.1.7                   
@types/cypress 1.1.3                     eslint 8.33.0                            husky 8.0.3                              prettier 2.8.3                           
@types/sanitize-html 2.8.0               eslint-config-prettier 8.6.0             lint-staged 13.1.0                       typescript 4.9.5                         
@typescript-eslint/eslint-plugin 5.51.0  eslint-plugin-nuxt 4.0.0                 nuxt 3.1.2                               vue-tsc 1.0.24  
@albericobenhur
Copy link

I have the same isue

@Tahul
Copy link
Contributor

Tahul commented Feb 7, 2023

Hello @albericobenhur & @hermesalvesbr ;

I made another publish of the lib, the line you mentioned seem outdated:
https://github.com/nuxt-modules/icon/blob/e040a2c2f2f5cc9b813b706f4600c6979ae03ea5/src/runtime/Icon.vue#L13

The first ?. should avoid vue-tsc to throw on this one.

Could you keep me updated if this 0.2.11 version fixes it?

@hermesalvesbr
Copy link
Author

Thanks for your attention, but didn't work with 0.2.11
Captura de tela de 2023-02-07 11-12-38

dependencies:
@nuxtjs/robots 3.0.0       apexcharts 3.37.0          moment 2.29.4              swiper 9.0.3               vue3-apexcharts 1.4.1      
@nuxtjs/tailwindcss 6.3.1  axios 1.3.2                nuxt-directus 3.2.2        type-check 0.4.0           yarn-upgrade-all 0.7.2     
@vueuse/core 9.12.0        daisyui 2.50.0             sanitize-html 2.9.0        vue-instantsearch 4.8.2    

devDependencies:
@commitlint/cli 17.4.2                   eslint 8.33.0                            nuxt 3.1.2                               
@commitlint/config-conventional 17.4.2   eslint-config-prettier 8.6.0             nuxt-icon 0.2.11                         
@types/cypress 1.1.3                     eslint-plugin-nuxt 4.0.0                 nuxt-meilisearch 0.1.7                   
@types/sanitize-html 2.8.0               eslint-plugin-prettier 4.2.1             prettier 2.8.3                           
@typescript-eslint/eslint-plugin 5.51.0  eslint-plugin-vue 9.9.0                  typescript 4.9.5                         
@typescript-eslint/parser 5.51.0         husky 8.0.3                              vue-tsc 1.0.24                           
@vue/eslint-config-standard 8.0.1        lint-staged 13.1.0                    

@Tahul
Copy link
Contributor

Tahul commented Feb 7, 2023

Is this project a public repository?

I double-checked again, and I don't understand why wouldn't you have the first ?., the built output has this:
CleanShot 2023-02-07 at 16 11 22@2x

I would love to browse a sandbox/repo reproduction.

@hermesalvesbr
Copy link
Author

No, it's not public, but I will make a sample and send here.

@hermesalvesbr
Copy link
Author

I made a clean project and works fine. It's not a module bug.

Maybe some cache by some package.

@MartCube
Copy link

MartCube commented Feb 8, 2023

Hi @hermesalvesbr, would you like to share how you clean your project to avoid this problem ?

@frasza
Copy link

frasza commented Mar 15, 2023

Same error for me using Node 16.18 and Nuxt 3.3

Copy link
Member

atinux commented Mar 15, 2023

Happy to provide a small reproduction and a new issue please @frasza 🙏 ?

@frasza
Copy link

frasza commented Mar 15, 2023

@atinux Sure, done -- #62. Let me know if I can assist further.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants