RE: Error liferay-theme instantiatedGenerator.run is not a function

Jamie Sammons, modified 1 Year ago. New Member Posts: 5 Join Date: 12/25/23 Recent Posts

I iam trying to install liferay theme generator inorder to start developing themes. i installed all the dependencies

yo --version 5.0.0

gulp --version CLI version: 2.3.0

node --version v16.14.0

npm install -g generator-liferay-theme@10.2.1

liferay.workspace.product = dxp-7.4-u88

--------------------------------------------------

but when i execute yo liferay-theme

i get the below message and error

 

Welcome to the splendid Themes SDK generator!


ℹ️ This version of the Themes SDK (10.2.1) supports Liferay DXP
and Portal CE from 7.2 to 7.4.

For older versions, please use v8 of the toolkit:

> npm install -g generator-liferay-theme@^8.0.0 ↩
> yo liferay-theme:app ↩


ℹ️ For detailed information regarding which version numbers of:

  · unstyled, styled, classic and admin themes
  · liferay-frontend-css-common and @clayui/css npm packages
  · Bootstrap framework

are used by each release of Liferay DXP and Portal CE see the table at:        

https://github.com/liferay/clay/wiki/Liferay-Portal-@clayui-css-Versions       


Error liferay-theme

instantiatedGenerator.run is not a function

 

please help me find a solution to resolve this issue

Jamie Sammons, modified 6 Months ago. New Member Posts: 4 Join Date: 1/23/25 Recent Posts

I also bumped into the same problem.

The solution is to downgrade the generator.

npm install -g yo@4.3.1 generator-generator

See: https://stackoverflow.com/questions/77939302/the-error-instantiatedgenerator-run-is-not-a-function-occurs-when-generating-t