ERROR in ./app.js Module not found: Error: Cannot resolve 'file' or 'directory' ./components/layout in /Users/YDZ/MyGitHub/weex-objccn @ ./app.js 13:14-44
ERROR in ./~/element-ui/lib/theme-default/index.css Module parse failed: /Users/YDZ/MyGitHub/weex-objccn/node_modules/element-ui/lib/theme-default/index.css Unexpected character '@' (1:0) You may need an appropriate loader to handle this file type. SyntaxError: Unexpected character '@' (1:0) at Parser.pp$4.raise (/Users/YDZ/MyGitHub/weex-objccn/node_modules/webpack/node_modules/acorn/dist/acorn.js:2221:15) at Parser.pp$7.getTokenFromCode (/Users/YDZ/MyGitHub/weex-objccn/node_modules/webpack/node_modules/acorn/dist/acorn.js:2756:10) at Parser.pp$7.readToken (/Users/YDZ/MyGitHub/weex-objccn/node_modules/webpack/node_modules/acorn/dist/acorn.js:2477:17) at Parser.pp$7.nextToken (/Users/YDZ/MyGitHub/weex-objccn/node_modules/webpack/node_modules/acorn/dist/acorn.js:2468:15) at Parser.parse (/Users/YDZ/MyGitHub/weex-objccn/node_modules/webpack/node_modules/acorn/dist/acorn.js:515:10) at Object.parse (/Users/YDZ/MyGitHub/weex-objccn/node_modules/webpack/node_modules/acorn/dist/acorn.js:3098:39) at Parser.parse (/Users/YDZ/MyGitHub/weex-objccn/node_modules/webpack/lib/Parser.js:902:15) at DependenciesBlock. (/Users/YDZ/MyGitHub/weex-objccn/node_modules/webpack/lib/NormalModule.js:104:16) at DependenciesBlock.onModuleBuild (/Users/YDZ/MyGitHub/weex-objccn/node_modules/webpack-core/lib/NormalModuleMixin.js:310:10) at nextLoader (/Users/YDZ/MyGitHub/weex-objccn/node_modules/webpack-core/lib/NormalModuleMixin.js:275:25) at /Users/YDZ/MyGitHub/weex-objccn/node_modules/webpack-core/lib/NormalModuleMixin.js:259:5 at Storage.finished (/Users/YDZ/MyGitHub/weex-objccn/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:38:16) at /Users/YDZ/MyGitHub/weex-objccn/node_modules/graceful-fs/graceful-fs.js:78:16 at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:446:3) @ ./app.js 11:0-49
element-ui 无法使用
ERROR in .//weex-vue-loader/lib/template-compiler.js?id=data-v-3174915a!.//weex-vue-loader/lib/selector.js?type=template&index=0!./src/components/bookCard.vue
template syntax error tag has no matching end tag.
ERROR in .//weex-vue-loader/lib/template-compiler.js?id=data-v-3174915a!.//weex-vue-loader/lib/selector.js?type=template&index=0!./src/components/bookCard.vue
template syntax error tag has no matching end tag.
ERROR in .//weex-vue-loader/lib/template-compiler.js?id=data-v-4429ec9a!.//weex-vue-loader/lib/selector.js?type=template&index=0!./src/components/footerView.vue
template syntax error tag
has no matching end tag.
ERROR in .//weex-vue-loader/lib/script-loader.js!.//babel-loader/lib!.//weex-vue-loader/lib/selector.js?type=script&index=0!./src/components/bookCard.vue
Module not found: Error: Cannot resolve module '@/router' in /Users/YDZ/MyGitHub/weex-objccn/src/components
@ .//weex-vue-loader/lib/script-loader.js!.//babel-loader/lib!.//weex-vue-loader/lib/selector.js?type=script&index=0!./src/components/bookCard.vue 7:14-33
组件用于渲染图片,并且它不能包含任何子组件。新版 Vue 2.0 中不支持用 作简写。
需要注意的是,需要明确指定 width 和 height,否则图片无法显示。