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

Vue "has no exported member 'onBeforeMount'." #3302

Open
p3v9d5ui opened this issue Jan 7, 2022 · 1 comment
Open

Vue "has no exported member 'onBeforeMount'." #3302

p3v9d5ui opened this issue Jan 7, 2022 · 1 comment

Comments

@p3v9d5ui
Copy link

p3v9d5ui commented Jan 7, 2022

  • [ x] I have searched through existing issues
  • [ x] I have read through docs
  • [ x] I have read FAQ
  • [x ] I have tried restarting VS Code or running Vetur: Restart VLS

Info

  • Platform: Mac
  • Vetur version: 0.35.0
  • VS Code version: 1.43.0

Problem

Incorrectly reports "Module '"../../../node_modules/vue/dist/vue"' has no exported member 'onBeforeMount'.Vetur(2305)" for this import:

import { defineComponent, onBeforeMount } from 'vue'

image

Reproducible Case

Vue 3/Typescript project with these dependencies:

├── @quasar/extras@1.12.2
├── @quasar/vite-plugin@1.0.4
├── @rollup/plugin-alias@3.1.9
├── @typescript-eslint/eslint-plugin@5.9.0
├── @typescript-eslint/parser@5.9.0
├── @vitejs/plugin-vue@1.10.2
├── eslint@8.6.0
├── install@0.13.0
├── quasar@2.4.3
├── sass@1.32.13
├── typescript@4.5.4
├── vite@2.7.10
├── vue-router@4.0.12
├── vue-tsc@0.28.10
├── vue@3.2.26
└── vuex@4.0.2

@yoyo930021
Copy link
Member

Please provide a repro case.
https://github.com/vuejs/vetur/blob/master/.github/NO_REPRO_CASE.md

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

No branches or pull requests

2 participants