Как я могу обновить тему с 6.2 до 7.2? - PullRequest
0 голосов
/ 26 марта 2020

Когда я запускаю обновление gulp с 6.2 до 7.0, я получаю следующее сообщение об ошибке:

C:\LiferayThemes\workspace\TestThemes\rev-theme>gulp upgrade
[16:54:09] Using gulpfile C:\LiferayThemes\workspace\TestThemes\rev-theme\gulpfile.js
[16:54:09] Starting 'upgrade'...
? We recommend creating a backup of your theme files before proceeding. Are you sure you wish to start the upgrade process? Yes
[16:54:13] Starting 'upgrade:black-list'...
[16:54:13] Finished 'upgrade:black-list' after 61 ms
[16:54:13] Starting 'upgrade:replace-compass'...
[16:54:13] Finished 'upgrade:replace-compass' after 37 ms
[16:54:13] Starting 'upgrade:convert-bootstrap'...
C:\LiferayThemes\workspace\TestThemes\rev-theme\node_modules\convert-bootstrap-2-to-3\lib\formatters\css.js:61
                                if (str.indexOf('content-box') > -1) {
                                        ^

TypeError: str.indexOf is not a function
    at constructor._checkPadding (C:\LiferayThemes\workspace\TestThemes\rev-theme\node_modules\convert-bootstrap-2-to-3\lib\formatters\css.js:61:13)
    at constructor._extractRecursive (C:\LiferayThemes\workspace\TestThemes\rev-theme\node_modules\convert-bootstrap-2-to-3\lib\formatters\css.js:247:6)
    at constructor.format (C:\LiferayThemes\workspace\TestThemes\rev-theme\node_modules\convert-bootstrap-2-to-3\lib\formatters\css.js:23:14)
    at CLI.processFileData (C:\LiferayThemes\workspace\TestThemes\rev-theme\node_modules\convert-bootstrap-2-to-3\lib\cli.js:181:28)
    at CLI.formatFile (C:\LiferayThemes\workspace\TestThemes\rev-theme\node_modules\convert-bootstrap-2-to-3\lib\cli.js:80:9)
    at CLI.onRead (C:\LiferayThemes\workspace\TestThemes\rev-theme\node_modules\convert-bootstrap-2-to-3\lib\cli.js:126:9)
    at wrapper (C:\LiferayThemes\workspace\TestThemes\rev-theme\node_modules\convert-bootstrap-2-to-3\node_modules\lodash\index.js:3533:19)
    at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:54:3)

Тема импортируется через yo из проекта 6.2. Кажется, gulp установлен правильно, так как мне удалось обновить пустые темы.

Что мне изменить?

Спасибо заранее!

...