“$attrs is readonly”,“$listeners is readonly”,“Avoid mutating a prop directly”

前端 未结 6 1849
后悔当初
后悔当初 2021-01-08 00:08

I am new to Vue. I am trying to develop a chatting application where friend list will be shown on the left menu and the chat box will be shown at the body. I am loading frie

6条回答
  •  温柔的废话
    2021-01-08 00:30

    In my case, I was migrating from a project that didn't use VueCLI. In that project, I imported vue from a CDN . In my Vue CLI project, I had copied and pasted my whole index.html file to the Public folder. Vue CLI has it's own way of importing vue so they were clashing. I simply removed the script and the problem was solved.

提交回复
热议问题