Generator for UI5 libraries using TypeScript which use the official UI5 tooling. This generator was built as a plug-in for the community project Easy UI5 by SAP.
Apache License 2.0
8
stars
3
forks
source link
An error occured while running ui5-ts-library:app#install TypeError: this.installDependencies is not a function #4
After setting the template parameters, when the files are being created, the following error appears:
create com.myorg.myUI5Library\tsconfig.json
create com.myorg.myUI5Library\ui5.yaml
× An error occured while running ui5-ts-library:app#install
TypeError: this.installDependencies is not a function
at module.exports.install (C:\Users\........\nvm\v16.15.0\node_modules\generator-easy-ui5\plugin-generators\generator-ui5-ts-library\generators\app\index.js:168:14)
This seems to be caused by a too-new yeoman version(?), the solution is to add the following lines to app/index.js like in the ui5-ts-app template:
// patches the Generator for the install tasks as new custom install
// tasks produce ugly errors! (Related issue: https://github.com/yeoman/environment/issues/309)
require('lodash').extend(Generator.prototype, require('yeoman-generator/lib/actions/install'))
After setting the template parameters, when the files are being created, the following error appears:
This seems to be caused by a too-new yeoman version(?), the solution is to add the following lines to
app/index.js
like in the ui5-ts-app template:@petermuessig knows the details