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

前端 未结 6 1877
后悔当初
后悔当初 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:26

    I faced the same problem. For me, as I installed a local module using

    yarn add ../somemodule --force
    

    Seems this command will copy the whole module directory include the node_modules sub-directory. That causes the duplication of the same version of "vue" module. And in the browser devtool I can see multiple sources of the module.

    For me, the solution is manually to delete the node_modules every time after install the local module.

提交回复
热议问题