Open hugo-z opened 5 years ago
entry-server.js
import renderVueComponentToString from 'vue-server-renderer/basic'; import app from './app'; import router from './plugins/router'; new Promise((resolve, reject) => { router.push(url); router.onReady(() => { const matchedComponents = router.getMatchedComponents(); if (!matchedComponents.length) { return reject({ code: 404 }); } resolve(app); }, reject); }).then(app => { renderVueComponentToString(app, (err, res) => { print(res); }); }).catch((err) => { print(err); });
I'm wondering where this global variable url is defined, I got this error when running $this->render() in the controller
url
$this->render()
Edited I know where went wrong. :)
entry-server.js
I'm wondering where this global variable
url
is defined, I got this error when running$this->render()
in the controller