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

Did you mean to use ... #3657

Closed
6 tasks
thisVioletHydra opened this issue Jun 2, 2021 · 2 comments · May be fixed by StemmlerSisters/vite#2
Closed
6 tasks

Did you mean to use ... #3657

thisVioletHydra opened this issue Jun 2, 2021 · 2 comments · May be fixed by StemmlerSisters/vite#2

Comments

@thisVioletHydra
Copy link

new project, and first run

image

Describe the bug

Reproduction

System Info

Output of npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers:

Used package manager:

Logs

src/components/HelloWorld.vue:31:12 - error TS2614: Module '"vue"' has no exported member 'ref'. Did you mean to use 'import ref from "vue"' instead?

31   import { ref, defineComponent } from 'vue';
              ~~~

src/components/HelloWorld.vue:31:17 - error TS2614: Module '"vue"' has no exported member 'defineComponent'. Did you mean to use 'import defineComponent from "vue"' instead?

31   import { ref, defineComponent } from 'vue';
                   ~~~~~~~~~~~~~~~

src/main.ts:1:10 - error TS2614: Module '"vue"' has no exported member 'createApp'. Did you mean to use 'import createApp from "vue"' instead?

1 import { createApp } from 'vue'
           ~~~~~~~~~


Found 7 errors.

error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.                    23:12:14
D:\WWW\kubernetes-example-deployment master   ~3 -4 ?5 

Before submitting the issue, please make sure you do the following

@thisVioletHydra
Copy link
Author

okay

yarn add vue@next -D

fixed my problem 🙄

@github-actions
Copy link

This issue has been locked since it has been closed for more than 14 days.

If you have found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest Vite version. If you have any other comments you should join the chat at Vite Land or create a new discussion.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant