1
我安裝了語義UI,創建自定義主題,但是當我使用一飲而盡手錶,在RTL watch.js負荷和每一個變化,我得到以下錯誤:語義UI一飲而盡RTL手錶錯誤
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');
}
我沒有改變吞噬文件中的任何行。我究竟做錯了什麼?