在使用vue-router遇到的问题以及解决办法
2016-12-03 16:31
971 查看
1、ERROR in ./src/view/BootPage.vue
template syntax error Component template should contain exactly one root element:
<nav class="boot-nav">..................
解决方法:在vue-router2.0中,事件template的根节点只能有一个。
2、 [Vue warn]: Failed to resolve directive: link
(found in anonymous component - use the "name" option for better debugging messages.)
解决方法:在vue-router1.0和vue-router2.0中有些指令和语法已经发生了变化。
template syntax error Component template should contain exactly one root element:
<nav class="boot-nav">..................
解决方法:在vue-router2.0中,事件template的根节点只能有一个。
2、 [Vue warn]: Failed to resolve directive: link
(found in anonymous component - use the "name" option for better debugging messages.)
解决方法:在vue-router1.0和vue-router2.0中有些指令和语法已经发生了变化。
相关文章推荐
- 拿什么拯救:Android Studio 时代 继续使用Eclipse开发Android app时遇到的几个问题以及解决办法
- 在使用cppunit,搭建测试环境时遇到的问题以及解决办法(仅供参考)
- 当使用Vue开发前端遇到的问题及解决办法汇总
- 使用cocoaPods和遇到的问题以及解决办法
- pligg9.7beta的后HTML编辑器插件的安装(tinymce_2_1_1_1)(以及使用中遇到的点滴问题解决办法)
- 在使用cppunit,搭建测试环境时遇到的问题以及解决办法(仅供参考)
- 使用xUtils遇到的问题,以及解决办法
- CentOS 6 使用rocksdb遇到的问题以及解决办法
- maven使用中遇到的小问题以及解决办法
- 使用vue-router与v-if实现tab切换遇到的问题及解决方法
- 自己在使用Android Maps API 开发地图应用程序时遇到的问题,以及解决的办法
- Git 使用过程中遇到的问题以及解决办法
- linux遇到的网卡问题以及解决办法
- 使用Ubuntu遇到的问题及解决办法
- CVS使用中遇到的问题及解决办法[随记]
- EVC、VS2005开发wince应用程序遇到的问题以及解决办法
- Fedora 9安装VMware tools 6.0.2遇到的问题以及解决办法