Skip to content

Property X does not exist on type CreateComponentPublicInstanceWithMixins #1289

@ziadsarour

Description

@ziadsarour

Describe the bug
Type error in <template> because @vue/runtime-core is augmented instead of vue. See : nuxt/nuxt#28707 (comment)

To Solve
Replace declare module '@vue/runtime-core' by declare module 'vue' in

declare module '@vue/runtime-core' {

Activity

added a commit that references this issue on Apr 18, 2025
ThornWalli

ThornWalli commented on Apr 19, 2025

@ThornWalli
Contributor

@ziadsarour You can test it here

npm i https://pkg.pr.new/basics/nuxt-booster@1290.

Thank you!

ziadsarour

ziadsarour commented on Apr 20, 2025

@ziadsarour
Author

@ThornWalli Working great, thank you !

ziadsarour

ziadsarour commented on Apr 20, 2025

@ziadsarour
Author

I talked too fast :/
There are new errors now when used inside my project :

ERROR  Pre-transform error: [unimport] failed to find "useBoosterHead" imported from "#imports"
  Plugin: nuxt:imports-transform
  File: /Users/ziad/Documents/Projets/XXXX/packages/nuxt/global/.playground/.nuxt/nuxt-booster/plugin.client.js

ERROR  Pre-transform error: [unimport] failed to find "useBoosterCritical" imported from "#imports"
  Plugin: nuxt:imports-transform
  File: /Users/ziad/Documents/Projets/XXXX/packages/nuxt/global/node_modules/.pnpm/nuxt-booster@https+++pkg.pr.new+basics+nuxt-booster@1290_@netlify+blobs@8.2.0_browsersl_5e7fded26818f666f608f2443d5979c7/node_modules/nuxt-booster/dist/runtime/components/BoosterPicture.vue

ERROR  Pre-transform error: [unimport] failed to find "useBoosterCritical" imported from "#imports"
  Plugin: nuxt:imports-transform
  File: /Users/ziad/Documents/Projets/XXXX/packages/nuxt/global/node_modules/.pnpm/nuxt-booster@https+++pkg.pr.new+basics+nuxt-booster@1290_@netlify+blobs@8.2.0_browsersl_5e7fded26818f666f608f2443d5979c7/node_modules/nuxt-booster/dist/runtime/components/BoosterImage.vue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @ziadsarour@ThornWalli

      Issue actions

        Property X does not exist on type CreateComponentPublicInstanceWithMixins · Issue #1289 · basics/nuxt-booster