正如问题中提到的,当我启动gulp build时,我会得到以下错误:
C:\dev\work\viewAngular\web\node_modules\gulp-clean-css\node_modules\clean-css\lib\reader\input-source-map-tracker.js:37
if (originalPosition.line === null && line > 1 && selectorFallbacks > 0) {
^
TypeError: Cannot read property 'line' of undefined
at originalPosition
For (C:\dev\work\viewAngular\web\node_modules\gulp-clean-css\node_modules\clean-css\lib\reader\input-source-map-tracker.js:37:23)我不知道这是从哪里来的,因为我没有对gulp-clean-css文件或任何相关的东西做任何更改。
我也推出了多次:bower update,bower install,npm install。
发布于 2017-05-04 12:17:09
我也有同样的问题。我的问题是我有一个像这样的devDependencies:
"devDependencies": {
...
"gulp-clean-css": "^2.0.3",
...
}这把gulp-clean-css撞到了2.4.0版本,它破坏了我的构建。删除^强制使用旧版本,并使我的构建再次运行。
现在是时候升级我的依赖项了,但至少我知道什么失败了.
https://stackoverflow.com/questions/43494864
复制相似问题