clone 老师项目到本地,为什么打开后显示的页面只有背景图片,没有显示中间的todo.vue模块
来源:1-2 项目介绍
慕UI6344213
2019-01-27
PS D:\muKe\muke-todo> npm run dev
vue-ssr-tech@1.0.0 dev D:\muKe\muke-todo
concurrently “npm run dev:client” “npm run dev:server”
[1]
[1] > vue-ssr-tech@1.0.0 dev:server D:\muKe\muke-todo
[1] > nodemon server/server.js
[1]
[0]
[0] > vue-ssr-tech@1.0.0 dev:client D:\muKe\muke-todo
[0] > cross-env NODE_ENV=development webpack-dev-server --config build/webpack.config.client.js
[0]
[1] [nodemon] 1.14.12
[1] [nodemon] reading config .\nodemon.json
[1] [nodemon] to restart at any time, enter rs
[1] [nodemon] or send SIGHUP to 7360 to restart
[1] [nodemon] ignoring: …git//* node_modules//node_modules .eslintrc .\client/**/* build/webpack.config.client.js public server-build
[1] [nodemon] watching: .
[1] [nodemon] watching extensions: js,json,ejs
[1] [nodemon] starting node server/server.js
[1] [nodemon] forking
[1] [nodemon] child pid: 6112
[1] [nodemon] watching 41 files
[1] server is listening on 0.0.0.0:3333
[0] Project is running at http://0.0.0.0:8000/
[0] webpack output is served from http://127.0.0.1:8000/public/
[0] 404s will fallback to /public/index.html
[0] webpack: wait until bundle finished: /public/
[1] new bundle generated
[0] Hash: d28e86f6bff044750bfa
[0] Version: webpack 3.10.0
[0] Time: 7819ms
[0] Asset Size Chunks Chunk Names
[0] resources/client/assets/images/bg.55db3d93.jpeg 80.8 kB [emitted]
[0] 0.bundle.d28e86f6.js 92.9 kB 0 [emitted] todo-view
[0] 1.bundle.d28e86f6.js 34.7 kB 1 [emitted] login-view
[0] bundle.d28e86f6.js 2.18 MB 2 [emitted] [big] main
[0] index.html 381 bytes [emitted]
[0] vue-ssr-client-manifest.json 5.91 kB [emitted]
[0] [12] (webpack)/hot/log.js 1.04 kB {2} [built]
[0] [24] (webpack)/hot/emitter.js 77 bytes {2} [built]
[0] [36] ./client/util/bus.js 49 bytes {2} [built]
PS D:\muKe\muke-todo> npm run dev
vue-ssr-tech@1.0.0 dev D:\muKe\muke-todo
concurrently “npm run dev:client” “npm run dev:server”
[1]
[1] > vue-ssr-tech@1.0.0 dev:server D:\muKe\muke-todo
[1] > nodemon server/server.js
[1]
[0]
[0] > vue-ssr-tech@1.0.0 dev:client D:\muKe\muke-todo
[0] > cross-env NODE_ENV=development webpack-dev-server --config build/webpack.config.client.js
[0]
[1] [nodemon] 1.14.12
[1] [nodemon] reading config .\nodemon.json
[1] [nodemon] to restart at any time, enter rs
[1] [nodemon] or send SIGHUP to 10456 to restart
[1] [nodemon] ignoring: …git//* node_modules//node_modules .eslintrc .\client/**/* build/webpack.config.client.js public server-build
[1] [nodemon] watching: .
[1] [nodemon] watching extensions: js,json,ejs
[1] [nodemon] starting node server/server.js
[1] [nodemon] forking
[1] [nodemon] child pid: 9796
[1] [nodemon] watching 41 files
[1] server is listening on 0.0.0.0:3333
[0] Project is running at http://0.0.0.0:8000/
[0] webpack output is served from http://127.0.0.1:8000/public/
[0] 404s will fallback to /public/index.html
[1] new bundle generated
[0] Hash: d28e86f6bff044750bfa
[0] Version: webpack 3.10.0
[0] Time: 7036ms
[0] Asset Size Chunks Chunk Names
[0] resources/client/assets/images/bg.55db3d93.jpeg 80.8 kB [emitted]
[0] 0.bundle.d28e86f6.js 92.9 kB 0 [emitted] todo-view
[0] 1.bundle.d28e86f6.js 34.7 kB 1 [emitted] login-view
[0] bundle.d28e86f6.js 2.18 MB 2 [emitted] [big] main
[0] index.html 381 bytes [emitted]
[0] vue-ssr-client-manifest.json 5.91 kB [emitted]
[0] [12] (webpack)/hot/log.js 1.04 kB {2} [built]
[0] [24] (webpack)/hot/emitter.js 77 bytes {2} [built]
[0] [36] ./client/util/bus.js 49 bytes {2} [built]
[0] [40] multi (webpack)-dev-server/client?http://0.0.0.0:8000 webpack/hot/dev-server ./client/client-entry.js 52 bytes {2} [built]
[0] [41] (webpack)-dev-server/client?http://0.0.0.0:8000 7.95 kB {2} [built]
[0] [42] ./node_modules/url/url.js 23.3 kB {2} [built]
[0] [49] ./node_modules/strip-ansi/index.js 161 bytes {2} [built]
[0] [51] ./node_modules/loglevel/lib/loglevel.js 7.86 kB {2} [built]
[0] [52] (webpack)-dev-server/client/socket.js 1.05 kB {2} [built]
[0] [54] (webpack)-dev-server/client/overlay.js 3.73 kB {2} [built]
[0] [59] (webpack)/hot nonrecursive ^./log$ 170 bytes {2} [built]
[0] [61] (webpack)/hot/dev-server.js 1.61 kB {2} [built]
[0] [62] (webpack)/hot/log-apply-result.js 1.31 kB {2} [built]
[0] [63] ./client/client-entry.js 300 bytes {2} [built]
[0] [64] ./client/create-app.js 652 bytes {2} [built]
[0] + 122 hidden modules
[0] Child html-webpack-plugin for “index.html”:
[0] 1 asset
[0] [0] ./node_modules/html-webpack-plugin/lib/loader.js!./build/template.html 667 bytes {0} [built]
[0] [1] ./node_modules/lodash/lodash.js 540 kB {0} [built]
[0] [2] (webpack)/buildin/global.js 509 bytes {0} [built]
[0] [3] (webpack)/buildin/module.js 517 bytes {0} [built]
[0] webpack: Compiled successfully.
终止批处理操作吗(Y/N)? [1] ��ֹ�����������(Y/N)? ��ֹ�����������(Y/N)? npm run dev:server exited with code 1
[0] npm run dev:client exited with code 1
^C
终止批处理操作吗(Y/N)? npm run build
PS D:\muKe\muke-todo> npm run dev
vue-ssr-tech@1.0.0 dev D:\muKe\muke-todo
concurrently “npm run dev:client” “npm run dev:server”
[1]
[1] > vue-ssr-tech@1.0.0 dev:server D:\muKe\muke-todo
[1] > nodemon server/server.js
[1]
[0]
[0] > vue-ssr-tech@1.0.0 dev:client D:\muKe\muke-todo
[0] > cross-env NODE_ENV=development webpack-dev-server --config build/webpack.config.client.js
[0]
[1] [nodemon] 1.14.12
[1] [nodemon] reading config .\nodemon.json
[1] [nodemon] to restart at any time, enter rs
[1] [nodemon] or send SIGHUP to 11256 to restart
[1] [nodemon] ignoring: …git//* node_modules//node_modules .eslintrc .\client/**/* build/webpack.config.client.js public server-build
[1] [nodemon] watching: .
[1] [nodemon] watching extensions: js,json,ejs
[1] [nodemon] starting node server/server.js
[1] [nodemon] forking
[1] [nodemon] child pid: 1984
[1] [nodemon] watching 41 files
[1] server is listening on 0.0.0.0:3333
[0] Project is running at http://0.0.0.0:8000/
[0] webpack output is served from http://127.0.0.1:8000/public/
[0] 404s will fallback to /public/index.html
[1] new bundle generated
[0] Hash: d28e86f6bff044750bfa
[0] Version: webpack 3.10.0
[0] Time: 6888ms
[0] Asset Size Chunks Chunk Names
[0] resources/client/assets/images/bg.55db3d93.jpeg 80.8 kB [emitted]
PS D:\muKe\muke-todo> npm run dev
vue-ssr-tech@1.0.0 dev D:\muKe\muke-todo
concurrently “npm run dev:client” “npm run dev:server”
[1]
[1] > vue-ssr-tech@1.0.0 dev:server D:\muKe\muke-todo
[1] > nodemon server/server.js
[1]
[0]
[0] > vue-ssr-tech@1.0.0 dev:client D:\muKe\muke-todo
[0] > cross-env NODE_ENV=development webpack-dev-server --config build/webpack.config.client.js
[0]
[1] [nodemon] 1.14.12
[1] [nodemon] reading config .\nodemon.json
[1] [nodemon] to restart at any time, enter rs
[1] [nodemon] or send SIGHUP to 9120 to restart
[1] [nodemon] ignoring: …git//* node_modules//node_modules .eslintrc .\client/**/* build/webpack.config.client.js public server-build
[1] [nodemon] watching: .
[1] [nodemon] watching extensions: js,json,ejs
[1] [nodemon] starting node server/server.js
[1] [nodemon] forking
[1] [nodemon] child pid: 3180
[1] [nodemon] watching 41 files
[1] server is listening on 0.0.0.0:3333
[0] Project is running at http://0.0.0.0:8000/
[0] webpack output is served from http://127.0.0.1:8000/public/
[0] 404s will fallback to /public/index.html
[1] new bundle generated
[0] Hash: d28e86f6bff044750bfa
[0] Version: webpack 3.10.0
[0] Time: 6727ms
[0] Asset Size Chunks Chunk Names
[0] resources/client/assets/images/bg.55db3d93.jpeg 80.8 kB [emitted]
[0] 0.bundle.d28e86f6.js 92.9 kB 0 [emitted] todo-view
[0] 1.bundle.d28e86f6.js 34.7 kB 1 [emitted] login-view
[0] bundle.d28e86f6.js 2.18 MB 2 [emitted] [big] main
[0] index.html 381 bytes [emitted]
[0] vue-ssr-client-manifest.json 5.91 kB [emitted]
[0] [12] (webpack)/hot/log.js 1.04 kB {2} [built]
[0] [24] (webpack)/hot/emitter.js 77 bytes {2} [built]
[0] [36] ./client/util/bus.js 49 bytes {2} [built]
[0] [40] multi (webpack)-dev-server/client?http://0.0.0.0:8000 webpack/hot/dev-server ./client/client-entry.js 52 bytes {2} [built]
[0] [41] (webpack)-dev-server/client?http://0.0.0.0:8000 7.95 kB {2} [built]
[0] [42] ./node_modules/url/url.js 23.3 kB {2} [built]
[0] [49] ./node_modules/strip-ansi/index.js 161 bytes {2} [built]
[0] [51] ./node_modules/loglevel/lib/loglevel.js 7.86 kB {2} [built]
[0] [52] (webpack)-dev-server/client/socket.js 1.05 kB {2} [built]
[0] [54] (webpack)-dev-server/client/overlay.js 3.73 kB {2} [built]
[0] [59] (webpack)/hot nonrecursive ^./log$ 170 bytes {2} [built]
[0] [61] (webpack)/hot/dev-server.js 1.61 kB {2} [built]
[0] [62] (webpack)/hot/log-apply-result.js 1.31 kB {2} [built]
[0] [63] ./client/client-entry.js 300 bytes {2} [built]
[0] [64] ./client/create-app.js 652 bytes {2} [built]
[0] + 122 hidden modules
[0] Child html-webpack-plugin for “index.html”:
[0] 1 asset
[0] [0] ./node_modules/html-webpack-plugin/lib/loader.js!./build/template.html 667 bytes {0} [built]
[0] [1] ./node_modules/lodash/lodash.js 540 kB {0} [built]
[0] [2] (webpack)/buildin/global.js 509 bytes {0} [built]
[0] [3] (webpack)/buildin/module.js 517 bytes {0} [built]
[0] webpack: Compiled successfully.
1回答
-
Jokcy
2019-01-28
你打开了之后,路由跳转到了哪里,另外你打开浏览器调试工具看看是否有报错
022019-01-30
相似问题