Code Monkey home page Code Monkey logo

Comments (8)

SiLenTTz avatar SiLenTTz commented on May 24, 2024 2

@NiteshDas, FYI, Here is the updated method. You can try using local master branch, I have not tried it though.
https://github.com/jhipster/jhipster.github.io/pull/730/files

Just follow your error and replace the old: getJhipsterAppConfig with the new: getAllJhipsterConfig in the index.js of the generator node_module.
Afterwards my App (though it was a flutter app) did build.

Thanks @pmverma

from generator-jhipster-ionic.

pmverma avatar pmverma commented on May 24, 2024 1

@NiteshDas, FYI, Here is the updated method. You can try using local master branch, I have not tried it though.
https://github.com/jhipster/jhipster.github.io/pull/730/files

from generator-jhipster-ionic.

pmverma avatar pmverma commented on May 24, 2024

It has been removed in https://github.com/jhipster/generator-jhipster/pull/9384/files

from generator-jhipster-ionic.

hamzahqureshi avatar hamzahqureshi commented on May 24, 2024

I am also getting this error on jhipster version 6.0.0. Is there any workaround until we get a fix ?

from generator-jhipster-ionic.

mraible avatar mraible commented on May 24, 2024

from generator-jhipster-ionic.

NiteshDas avatar NiteshDas commented on May 24, 2024

This issue is still with Jhipster 5 and ionic 3. Are there any other reason for this error.

from generator-jhipster-ionic.

mraible avatar mraible commented on May 24, 2024

@NiteshDas That seems strange since the PR that removes it has a 6.0.0-beta.0 milestone.

I just tried creating an app with JHipster 5.8.2.

npm install -g [email protected]

I used blog.jh to create it.

mkdir blog
cd blog
jhipster import-jdl ~/Downloads/blog.jh

Then I used this module to create a new Ionic app.

$ yo jhipster-ionic
WARNING! This method is deprecated. Use getAllJhipsterConfig

Welcome to the Ionic Module for JHipster! v3.3.0

? What do you want to name your Ionic application? ionic4j
? Enter the directory where your JHipster app is located: blog

Creating Ionic app with command: ionic start ionic4j oktadeveloper/jhipster
✔ Preparing directory ./ionic4j - done!
⠏ Looking up starter
[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:170
      throw er; // Unhandled 'error' event
      ^

TypeError: Cannot set property 'author' of undefined
    at module.exports.install (/usr/local/lib/node_modules/generator-jhipster-ionic/generators/app/index.js:153:28)

As you can see, I don't get the same error. This error happens because I'm using Ionic 4 CLI.

$ ionic --version
4.12.0

If I change it to Ionic 3, it works:

$ npm i -g [email protected]
$ yo jhipster-ionic
WARNING! This method is deprecated. Use getAllJhipsterConfig

Welcome to the Ionic Module for JHipster! v3.3.0

? What do you want to name your Ionic application? ionic4j
? Enter the directory where your JHipster app is located: blog

Creating Ionic app with command: ionic start ionic4j oktadeveloper/jhipster
✔ Looking up starter - done!
✔ Downloading and extracting oktadeveloper/jhipster starter - done!

? Would you like to integrate your new app with Cordova to target native iOS and Android? No
✔ Personalizing ionic.config.json and package.json - done!

Installing dependencies may take several minutes.

  ✨   IONIC  DEVAPP  ✨

 Speed up development with the Ionic DevApp, our fast, on-device testing mobile app

  -  🔑   Test on iOS and Android without Native SDKs
  -  🚀   LiveReload for instant style and JS updates

 ️-->    Install DevApp: https://bit.ly/ionic-dev-app    <--

> npm i
⠙ Running command

from generator-jhipster-ionic.

fleboulch avatar fleboulch commented on May 24, 2024

See my comment you don't have to downgrade to Ionic3

from generator-jhipster-ionic.

Related Issues (20)

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.