browserify: { options: { transform: ['brfs'], debug: true }, debug: { files: {'build/test.min.js': 'src/test.js'}, } } 只要加了transform: ['brfs'],就会报错,去掉就能正常编译,什么情况啊?$ gruntRunning "browserify:debug" (browserify) task>> TypeError: Cannot read property 'apply' of undefined while parsing file: X:\Users\javascript\Desktop\LEARN\learn_grunt\src\test.jsWarning: Error running grunt-browserify. Use --force to continue.Aborted due to warnings.
1 回答

郎朗坤
TA贡献1921条经验 获得超9个赞
配置文件里面的~全部换成^就行了
"devDependencies": {
"browserify": "^3.32.1",
"grunt": "^0.4.4",
"grunt-browserify": "^1.3.2",
"grunt-contrib-clean": "^0.5.0",
"grunt-contrib-watch": "^0.6.1",
"brfs": "^1.0.1"
}
添加回答
举报
0/150
提交
取消