Message Boards

How to generate Liferay theme?

Luka Ruskan, modified 2 Years ago.

How to generate Liferay theme?

New Member Posts: 2 Join Date: 1/21/22 Recent Posts

Hi,
I use Liferay 7.3.1 and I am trying to generate, and deploy a theme with a theme generator but I am not successful with that. 
Generating a theme is successful but when I try to build it and deploy it I got errors about:
"compound selectors may no longer be extended.
Consider `@extend .dropdown-item, .disabled` instead.
See http://bit.ly/ExtendCompound for details."

The version of the generator and other stuff that I have installed is:
node v16.13.2
generator-liferay-theme v10.2.0                                                                                      gulp v4.0.2                                                                                                         npm v8.1.2                                                                                                            yo v4.3.0  

Can somebody help me with how to generate and build a simple theme for Liferay 7.3.1?

Luka Ruskan, modified 2 Years ago.

RE: How to generate Liferay theme?

New Member Posts: 2 Join Date: 1/21/22 Recent Posts

The link that helped me to temporarily solve the issue:

https://stackoverflow.com/questions/70217507/liferay-theme-creation-error-during-gulp-build-and-gulp-deploy

Daniel G, modified 2 Years ago.

RE: How to generate Liferay theme?

Regular Member Posts: 141 Join Date: 3/14/17 Recent Posts

I've explained my solution in this thread: https://liferay.dev/ask/questions/development/issues-when-building-theme

These are the versions that work for me:

- nodejs 10.16.3   

- gulp 3.9.1

- yeoman 3.1.1

- python 2.7.18

- generator liferay-theme 9.5.4

 

Regards