Skip to content

conflict with @vue-macros/nuxt 'Type warnings' #3909

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

Open
geminigeek opened this issue Apr 15, 2025 · 1 comment
Open

conflict with @vue-macros/nuxt 'Type warnings' #3909

geminigeek opened this issue Apr 15, 2025 · 1 comment
Labels
bug Something isn't working triage v3 #1289

Comments

@geminigeek
Copy link

geminigeek commented Apr 15, 2025

Environment

Is this bug related to Nuxt or Vue?

Nuxt

Version

v3.16.2

Reproduction

https://codesandbox.io/p/devbox/new-star-4x9vqf

just run the repo check in terminal for warnings

Description

hi,

i am getting type warnings like this for all components, every thing works fine, i am not even using typescript in my Vue SFC

 WARN  warning: unplugin-vue-better-define TransformError: Cannot resolve TS type: ButtonProps                                                                       11:01:47 pm  
  Plugin: unplugin-vue-better-define
  File: F:/node-local/nuxt-apps/nuxt-with-nuxt-ui/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected][email protected][email protected]_eiavxvfntsids5hrxwa6ymgw74/node_modules/@nuxt/ui/dist/runtime/components/Button.vue


 WARN  warning: unplugin-vue-better-define TransformError: Cannot resolve TS type: LinkProps                                                                         11:01:46 pm  
  Plugin: unplugin-vue-better-define
  File: F:/node-local/nuxt-apps/nuxt-with-nuxt-ui/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected][email protected][email protected]_eiavxvfntsids5hrxwa6ymgw74/node_modules/@nuxt/ui/dist/runtime/components/Link.vue


 WARN  Cannot resolve TS type: LinkProps                                                                                                                             11:01:46 pm  

    at /F:/node-local/nuxt-apps/nuxt-with-nuxt-ui/node_modules/.pnpm/@[email protected][email protected][email protected]_/node_modules/@vue-macros/api/dist/index.js:1308:13 


Additional context

if i remove the @vue-macros/nuxt plugin all warnings gone

Logs

@geminigeek geminigeek added bug Something isn't working triage v3 #1289 labels Apr 15, 2025
@zlinst
Copy link

zlinst commented Apr 24, 2025

Temp solution if you don't use betterDefine in vue-macros

  // in your nuxt.config.* config
  macros: {
    betterDefine: false,
  },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage v3 #1289
Projects
None yet
Development

No branches or pull requests

2 participants