vue2 跟 koa2 的SSR 之旅
cd-dongzi / vue2-koa2-ssr Goto Github PK
View Code? Open in Web Editor NEWvue2 跟 koa2 的SSR 之旅
vue2 跟 koa2 的SSR 之旅
vue2 跟 koa2 的SSR 之旅
请问您下,为什么node 控制台一直在打console
rt
hello, all work but
GET http://localhost:3000/static/favicon.ico 500 (Internal Server Error)
i have file favicon.ico in static directory
在clone代码后,运行npm install之后,再运行npm run dev 时会报
npm run dev
[email protected] dev D:\workspace\vue2-koa2-ssr
nodemon code/server/babel.js
[nodemon] 1.17.3
[nodemon] to restart at any time, enter rs
[nodemon] watching: .
[nodemon] starting node code/server/babel.js
(node:7372) DeprecationWarning: Tapable.plugin is deprecated. Use new API on .h ooks
instead
server is running at http://192.168.0.105:3000
D:\workspace\vue2-koa2-ssr\node_modules\webpack\lib\TemplatedPathPlugin.js:43
throw new Error(
^
Error: Path variable [contenthash] not implemented in this context: static/css/[ name].[contenthash].css
at fn (D:\workspace\vue2-koa2-ssr\node_modules\webpack\lib\TemplatedPathPlug in.js:43:11)
at fn (D:\workspace\vue2-koa2-ssr\node_modules\webpack\lib\TemplatedPathPlug in.js:31:16)
at String.replace ()
at replacePathVariables (D:\workspace\vue2-koa2-ssr\node_modules\webpack\lib \TemplatedPathPlugin.js:98:5)
at SyncWaterfallHook.eval (eval at create (D:\workspace\vue2-koa2-ssr\node_m odules\tapable\lib\HookCodeFactory.js:17:12), :7:16)
at MainTemplate.getAssetPath (D:\workspace\vue2-koa2-ssr\node_modules\webpac k\lib\MainTemplate.js:387:31)
at Compilation.getPath (D:\workspace\vue2-koa2-ssr\node_modules\webpack\lib\ Compilation.js:1807:28)
at getPath (D:\workspace\vue2-koa2-ssr\node_modules\extract-text-webpack-plu gin\dist\index.js:315:51)
at ExtractTextPlugin.extractedChunks.forEach.extractedChunk (D:\workspace\vu e2-koa2-ssr\node_modules\extract-text-webpack-plugin\dist\index.js:323:83)
at Array.forEach ()
at compilation.hooks.additionalAssets.tapAsync.assetCb (D:\workspace\vue2-ko a2-ssr\node_modules\extract-text-webpack-plugin\dist\index.js:301:25)
at AsyncSeriesHook.eval [as callAsync] (eval at create (D:\workspace\vue2-ko a2-ssr\node_modules\tapable\lib\HookCodeFactory.js:24:12), :7:1)
at AsyncSeriesHook.lazyCompileHook [as _callAsync] (D:\workspace\vue2-koa2-s sr\node_modules\tapable\lib\Hook.js:35:21)
at hooks.optimizeTree.callAsync.err (D:\workspace\vue2-koa2-ssr\node_modules \webpack\lib\Compilation.js:954:32)
at _err0 (eval at create (D:\workspace\vue2-koa2-ssr\node_modules\tapable\li b\HookCodeFactory.js:24:12), :11:1)
at _async2.default.forEach.err (D:\workspace\vue2-koa2-ssr\node_modules\extr act-text-webpack-plugin\dist\index.js:296:11)
[nodemon] app crashed - waiting for file changes before starting...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.