加载“connect_proxy.js”任务…错误>>types错误:无法读取未定义的属性“原型”
我正在尝试使用grunt运行一个http服务器。 但是,当我在相应的目录中inputgrunt serve时,出现以下错误:
Loading "connect_proxy.js" tasks...ERROR >> TypeError: Cannot read property 'prototype' of undefined Loading "connect_proxy.js" tasks...ERROR >> TypeError: Cannot read property 'prototype' of undefined
看起来像一些依赖问题,看看这个,显然是解决了,如果你更新你的“grunt-connect-proxy”
"devDependencies": { "grunt-connect-proxy": "^0.2.0" }