Subscribe on changes!

Inconsistency of setup and non-setup script

avatar
Sep 28th 2020

Version

3.0.0

Reproduction link

https://github.com/FrankFang/vue-bug-1

Steps to reproduce

  1. git clone https://github.com/FrankFang/vue-bug-1.git
  2. cd vue-bug-1
  3. yarn
  4. yarn dev
  5. open http://127.0.0.1:3000

What is expected?

I expect the page reads Message from HelloWorld.vue Message from HelloWorld.vue

What is actually happening?

The page reads Message from HelloWorld.vue Message from App.vue


HelloWorld.vue and HelloWorldUsingSetup.vue should be consistent

avatar
Sep 28th 2020

you shouldn't be doing either of those things ...

avatar
Sep 28th 2020

You cannot have a prop and a data property (or any other property that is directly available through this or on the template, with the same name. There is already a warning on the console about duplicated names

avatar
Sep 29th 2020

good

avatar
Sep 29th 2020

I dont do this. But someone may do this. It should be consistent. Ok, I see.