Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use updated API method from main generator to load configs #69

Closed
wants to merge 4 commits into from
Closed

Use updated API method from main generator to load configs #69

wants to merge 4 commits into from

Conversation

pmverma
Copy link
Member

@pmverma pmverma commented May 15, 2019

Fix #68

@pmverma
Copy link
Member Author

pmverma commented May 15, 2019

Getting following error.

Creating Ionic app with command: ionic start ionic4j oktadeveloper/jhipster --no-interactive
(node:7564) ExperimentalWarning: The http2 module is an experimental API.
[ERROR] Unable to find starter template for oktadeveloper/jhipster
        
        If this is not a typo, please make sure it is a valid starter template 
        within the starters repo: https://github.com/ionic-team/starters
events.js:137
      throw er; // Unhandled 'error' event
      ^
TypeError: Cannot set property 'author' of undefined
    at module.exports.install (/home/travis/generator-jhipster-ionic/generators/app/index.js:153:28)
    at Object.<anonymous> (/home/travis/generator-jhipster-ionic/node_modules/generator-jhipster/node_modules/yeoman-generator/lib/index.js:399:25)
    at /home/travis/generator-jhipster-ionic/node_modules/generator-jhipster/node_modules/run-async/index.js:25:25
    at new Promise (<anonymous>)
    at /home/travis/generator-jhipster-ionic/node_modules/generator-jhipster/node_modules/run-async/index.js:24:19
    at self.env.runLoop.add.completed (/home/travis/generator-jhipster-ionic/node_modules/generator-jhipster/node_modules/yeoman-generator/lib/index.js:400:11)
    at runCallback (timers.js:756:18)
    at tryOnImmediate (timers.js:717:5)
    at processImmediate [as _immediateCallback] (timers.js:697:5)
The command "$JHIPSTER_SCRIPTS/02-generate-project.sh" exited with 1.

@pmverma
Copy link
Member Author

pmverma commented May 15, 2019

I think build error is due to v4.

@mraible
Copy link
Collaborator

mraible commented May 15, 2019

See #68 (comment)

This module only works with Ionic 3 and JHipster 5. We’re working on a version that works with Ionic 4 and JHipster 6. We have to get the starter integrated first. Follow ionic-team/starters#749 to see when that is complete.

@pmverma
Copy link
Member Author

pmverma commented May 15, 2019

Thanks @mraible

@@ -129,9 +129,9 @@ module.exports = class extends BaseGenerator {
this.error(`\nYour backend project must be a monolith or a gateway to work with this module! Found application type: ${applicationType}.\n`);
}

const cmd = `ionic start ${this.ionicAppName} oktadeveloper/jhipster${(this.interactive) ? '' : ' --no-interactive'}`;
const cmd = `ionic start ${this.ionicAppName} https://github.com/oktadeveloper/ionic-jhipster-starter${(this.interactive) ? '' : ' --no-interactive'}`;
Copy link

@fleboulch fleboulch May 17, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pmverma
The support for V4 is still not finished. We need to add entity support as V3 does.
So this change can't be added right now.
To fix this you can run the ionic start command with the flag --type=ionic-angular for Ionic v4

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @fleboulch. I am going to close this PR as I notice v4 support is already in progress.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i will go to try this..

@pmverma pmverma closed this May 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Launching the module with "yo jhipster-ionic" is not starting
4 participants