【问题标题】:Module '"vue"' has no exported member 'reactive'模块 '"vue"' 没有导出的成员 'reactive'
【发布时间】:2021-03-20 20:03:33
【问题描述】:

我正在使用 "vue": "^3.0.0" 并尝试使用来自 vue 的一些 Reactivity in Depth。但是出错了

Module '"vue"' has no exported member 'reactive'
Module '"vue"' has no exported member 'ref'

甚至在这里记录:https://v3.vuejs.org/guide/reactivity.html#what-is-reactivity

更详细的包

"vue-class-component": "^8.0.0-0",
"vue-property-decorator": "^9.1.2",
...
"@vue/compiler-sfc": "^3.0.0",

【问题讨论】:

    标签: vuejs3


    【解决方案1】:

    您的一个依赖项与 Vue 3 不兼容 - 需要 Vue 2。所以您已经安装了这两个版本。

    你可以尝试执行npm explain vue看看是哪一个...

    【讨论】:

      猜你喜欢
      • 2021-10-17
      • 2021-12-09
      • 2019-10-01
      • 2021-05-26
      • 1970-01-01
      • 2017-05-20
      • 2017-05-07
      • 2017-08-18
      相关资源
      最近更新 更多