[英]Grunt Warning: Object #<Object> has no method 'isAbsolute'
This error shows up when running grunt with the responsive-images-extender plugin. 使用响应图像扩展插件运行grunt时会显示此错误。 This is my configuration:
这是我的配置:
responsive_images_extender: {
target: {
options: {
sizes: [{
selector: 'img',
sizeList: [{
cond: 'min-width: 300px',
size: '50vw'
}, {
cond: 'min-width: 700px',
size: '70vw'
}, {
cond: 'default',
size: '100vw'
}]
}]
},
files: [{
expand: true,
src: ['**/*.{html,htm,php}'],
cwd: 'src/',
dest: 'dist/'
}]
}
}
Even with the options completely blank, I get the same error. 即使选项完全空白,我也会遇到相同的错误。 What causes this error?
是什么导致此错误? I feel like it could be a typo, but I don't see it.
我觉得这可能是一个错字,但我看不到。
It is because you are using an old version of NodeJS. 这是因为您使用的是旧版本的NodeJS。 That function is deprecated and updating NodeJS will solve the issue.
该功能已弃用,更新NodeJS将解决此问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.