Foren

Upgrading Theme to 7.0 fails

Merlin Knäble, geändert vor 7 Jahren.

Upgrading Theme to 7.0 fails

New Member Beitrag: 1 Beitrittsdatum: 24.06.16 Neueste Beiträge
Hi,

I'm currently trying to upgrade my Liferay 6.x theme to work with my 7.0 instance and use this guide in the Liferay Developer Network. The command
gulp upgrade
fails permanently, and returns this:
Using gulpfile /<bladeclilocation>/themes/<mytheme>/gulpfile.js
Starting 'upgrade'...
'upgrade' errored after 536 μs
Error in plugin 'gulp-theme-upgrader'
Message:    Version specific upgrade task must return function.
</mytheme></bladeclilocation>

Has anyone here experience with this issue or just happens to know what causes this (and maybe how to fix it)?

Thanks,

Merlin
John Plaschke, geändert vor 7 Jahren.

RE: Upgrading Theme to 7.0 fails

New Member Beiträge: 8 Beitrittsdatum: 06.11.14 Neueste Beiträge
Hi
I was having the same problem and tracked this down.

I looked in the upgrade.js file and found the message "Version specific upgrade task must return a function"

It turns out that if you look in [your theme root]\node_modules\liferay-theme-tasks\lib\upgrade you will see a 6.2 folder

Unfortunately gulp help does not show there is a version argument.

try gulp upgrade -v 6.2