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

Wrong warning message about default export #1664

Closed
a1mersnow opened this issue Jul 21, 2020 · 3 comments
Closed

Wrong warning message about default export #1664

a1mersnow opened this issue Jul 21, 2020 · 3 comments

Comments

@a1mersnow
Copy link

Version

3.0.0-rc.2

Reproduction link

https://github.com/aimergenge/reproduction-for-vue3

Steps to reproduce

  1. clone the reproduction repo
  2. use cd move into it
  3. yarn
  4. yarn dev
  5. edit HelloWorld.vue, save
  6. ctrl z/cmd z, save

What is expected?

Nothing should be warned

What is actually happening?

There is a warning said:

Default export is already declared in normal <script>.

12 |  <script setup="props">
13 |  import { defineComponent, onMounted, toRef, ref, watchEffect, computed } from "vue";
14 |  
   |   ^
15 |  export default defineComponent({
   |  ^^^^^^^^^^^^^^
16 |    name: 'HelloWorld'
@posva
Copy link
Member

posva commented Jul 21, 2020

There is no warning...

@posva posva closed this as completed Jul 21, 2020
@a1mersnow
Copy link
Author

a1mersnow commented Jul 21, 2020

@posva Have you followed my steps to reproduce?
Especially step 5 & 6

Try some times you will see it……

@posva
Copy link
Member

posva commented Jul 21, 2020

Now I managed to reproduce it, it only happens when doing the undo action, not when changing the name to something else

@posva posva reopened this Jul 21, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Nov 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants