renderContext.renderResourceHints is not a function (Nuxt运行报错) 炳子 2021-03-22 2,366 阅读1分钟 Nuxt运行报错: renderContext.renderResourceHints is not a function 是因为它不支持window的一些属性和方法 解决方法加个判断: if (process.browser) { //这里有window对象 }