Vue报错——the "scope" attribute for scoped slots have been deprecated and replaced by "slot-scope"
2017-12-22 17:24
1996 查看
场景重现:
在git上克隆完同事上传的Vue项目,用VS Code运行时报错。
VS Code运行栏报错:
the "scope" attribute for scoped slots have been deprecated and replaced by "slot-scope" since 2.5.
The new "slot-scope" attribute can also be used on plain elements in addition to <template> to denote scoped slots.
原因:
"scope"标签自Vue 2.5版本后被遗弃,替代的新标签时"slot-scope",优先常看双方的Vue版本,可能是因为Vue版本不一致。
在我这种情况里,我得Vue版本为2.8.2,他的版本为2.3.3。所以同志们,协同开发之前,一定要记得跟好基友的版本一致啊!
解决方法:
待更新~目前貌似除了全局更换标签,把scope=“scope”更换为slot-scope="scope",没有其他方法了。以后有更好的方法再更新。
在git上克隆完同事上传的Vue项目,用VS Code运行时报错。
VS Code运行栏报错:
the "scope" attribute for scoped slots have been deprecated and replaced by "slot-scope" since 2.5.
The new "slot-scope" attribute can also be used on plain elements in addition to <template> to denote scoped slots.
原因:
"scope"标签自Vue 2.5版本后被遗弃,替代的新标签时"slot-scope",优先常看双方的Vue版本,可能是因为Vue版本不一致。
在我这种情况里,我得Vue版本为2.8.2,他的版本为2.3.3。所以同志们,协同开发之前,一定要记得跟好基友的版本一致啊!
解决方法:
待更新~目前貌似除了全局更换标签,把scope=“scope”更换为slot-scope="scope",没有其他方法了。以后有更好的方法再更新。
相关文章推荐
- The breakpoint will not currently be hit. No symbols have been loaded for this document."
- 转:Debugger problem "The breakpoint will not currently be hit. No symbols have been loaded for this document“
- Debug error:"One or more breakpoints cannot be set and have been disabled.Execution will stop at the beginning of the program."
- Fixing "The following VMware kernal modules have been found on your system that were not installed by the VMware installer."
- The Diesel watches is a name which is for the elegance and style you had been craving to have
- Debug error:"One or more breakpoints cannot be set and have been disabled.Execution will stop at the
- Debugger problem "The breakpoint will not currently be hit. No symbols have been loaded for this document
- 解决 PowerDesigner 错误 The generation has been cancelled because errors have been found by the check model.
- I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum o
- vue使用v-for渲染列表属性需要:="items.attribute"绑定
- Ubuntu-The configuration defaults for GNOME Power Manager have not been installed correctly.
- The configuration defaults for GNOME Power Manager have not been installed correctly.
- Fixing "The following VMware kernal modules have been found on your system that were not installed b
- Attribute "scope" must be declared for element type "bean"-[spring]
- The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions, unless TOP or FOR XML is also specified.
- [IDE-Visual Studio]The breakpoint will not currently be hit. No symbols have been loaded for this document.[Reshipment]
- Smashing the Stack for Fun and Profit by Aleph One
- spring mvc 默认配置文件 rest-servlet.xml 修改 方法 You have named the DispatcherServlet "rest," so by defau
- 'UIAccelerometer' is deprecated:first deprecated in iOS 5.0-UIAccelerometer has replaced by the CoreMotion framework
- One or more breakpoints cannot be set and have been disabled!Execution will stop at the beginning of the program