Foros de discusión

Upgrading Theme to 7.0 fails

Merlin Knäble, modificado hace 7 años.

Upgrading Theme to 7.0 fails

New Member Mensaje: 1 Fecha de incorporación: 24/06/16 Mensajes recientes
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, modificado hace 7 años.

RE: Upgrading Theme to 7.0 fails

New Member Mensajes: 8 Fecha de incorporación: 6/11/14 Mensajes recientes
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