我安装了语义ui,创建了一个自定义主题,但是当我使用gulp watch时,RTL watch.js会加载并且每次更改时都会出现以下错误:
Watching source files for changes
Change detected in packaged theme
/home/vagrant/Code/angular/semantic/tasks/rtl/watch.js:109
lessPath = lessPath.replace(tasks.regExp.theme, source.definitions);
^
TypeError: Cannot read property 'replace' of undefined
at /home/vagrant/Code/angular/semantic/tasks/rtl/watch.js:109:28
与这些行有关:
else if(isPackagedTheme) {
console.log('Change detected in packaged theme');
lessPath = lessPath.replace(tasks.regExp.theme, source.definitions);
lessPath = util.replaceExtension(file.path, '.less');
}
我没有更改gulp文件中的任何行。我做错了什么?
答案 0 :(得分:1)
gulpfiles afaik中有一个错误。我在Github上创建了一个Pull Request: