You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ext -> viewEngineName -> viewEngine
async [RENDER](name, locals, options = {}) {
// retrieve fullpath matching name from `config.root`
const filename = await this.viewManager.resolve(name);
options.name = name;
options.root = filename.replace(path.normalize(name), '').replace(/[\/\\]$/, '');
// get the name of view engine,
// if viewEngine is specified in options, don't match extension
let viewEngineName = options.viewEngine;
if (!viewEngineName) {
这段代码报错:filename.replace is not a function
The text was updated successfully, but these errors were encountered:
使用easywebpack直接生成的项目将egg升级到2.0.0后,服务端渲染时会500
这段代码报错:
filename.replace is not a function
The text was updated successfully, but these errors were encountered: