vue.esm.js:628 [Vue warn]: Unknown custom element: <SlideBar> - did you register the component corre

vue.esm.js:628 [Vue warn]: Unknown custom element: - did you register the component correctly

问题根源

注册组件时注册反了;

应先新建VUE实例再注册组件是,调转一下顺序即可解决

你可能感兴趣的:(webpack,Vue)