Giter Club home page Giter Club logo

generator-ui5-ts-library's Introduction

we're UI5, folks!

This is the head space of the UI5 community.

generator-ui5-ts-library's People

Contributors

akudev avatar dfenerski avatar flovogt avatar lemaiwo avatar marianfoo avatar matz3 avatar petermuessig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

generator-ui5-ts-library's Issues

Running the package.json watch script fails because of missing tsconfig.json types array

Hi team,

Issue:
Running yarn watch fails with the following:
Error: Type 'Control' referenced in path-to-my-library/src/use/ui5/library/Example.ts could not be resolved - are the UI5 (and other) type definitions available and known in the tsconfig? Or is there a different reason why this type would not be known?

Fix:
File: generator-ui5-ts-library/generators/app/templates/tsconfig.json
Add: "types": ["<%= tstypes %>"], under the "baseUrl": "./", line
Why: After manually adding "types": ["@sapui5/ts-types-esm"], to the generated tsconfig.json file, the yarn watch command executed successfully.

Friendly regards,
Zühnja

Consuming library in UI5 typescript project

Hi, I am trying to develop and consume typescript lib generated via your generator.

I have successfully generated and publish lib to private NPM package registry. But I haven't found any tutorial how to integrate it in UI5 application. The application is generated with typescript generator.

So far I have installed library as dependency via NPM. Do you have any example repository or guide for this scenario?

Any help would be highly appreciated.

Thanks

An error occured while running ui5-ts-library:app#install TypeError: this.installDependencies is not a function

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'))

@petermuessig knows the details

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.