render error TypeError: context.renderStyles is not a function
来源:5-3 服务端渲染的entry配置
 
			未予
2018-08-16
const appString = renderer.renderToString(context)
const html = ejs.render(template, {
  appString,
  style: context.renderStyles(),
  scripts: context.renderScripts()
})
app route before enter
render error TypeError: context.renderStyles is not a function
    at module.exports (D:\WebstormProjects\vue-todo-tech\server\routers\server-render.js:10:22)
    at handleSSR (D:\WebstormProjects\vue-todo-tech\server\routers\dev-ssr.js:51:9)
    at process._tickCallback (internal/process/next_tick.js:68:7)
to do before route enter写回答
	1回答
- 
				  未予 提问者 2018-08-16 好了。看了其他人的回答。 00
相似问题