installing: npm i @xiges/generator-jhipster-firebase
running: yo @xiges/jhipster-firebase
result: Just found a .yo-rc.json in a parent directory.
Setting the project root at: /Users/joerg/git/tdmanager
Welcome to the JHipster Firebase generator! v0.0.5
ReferenceError: DEFAULT_FIREBASE_TYPE is not defined
at module.exports.prompting (/Users/joerg/git/tdmanager/node_modules/@xiges/generator-jhipster-firebase/generators/app/index.js:66:21)
at Object. (/Users/joerg/git/tdmanager/node_modules/yeoman-generator/lib/index.js:647:25)
at /Users/joerg/git/tdmanager/node_modules/run-async/index.js:47:25
at new Promise ()
at /Users/joerg/git/tdmanager/node_modules/run-async/index.js:24:19
at self.env.runLoop.add.once.once (/Users/joerg/git/tdmanager/node_modules/yeoman-generator/lib/index.js:648:11)
at processImmediate (internal/timers.js:439:21)
at process.topLevelDomainCallback (domain.js:131:23)
nothing was prompted *
INFO! Using JHipster version installed globally
INFO! Executing jhipster:info
INFO! Options: from-cli: true
Just found a .yo-rc.json in a parent directory.
Setting the project root at: /Users/joerg/git/tdmanager
Welcome to the JHipster Information Sub-Generator
\node_modules\@xiges\generator-jhipster-firebase\generators\app\index.js
Constants name mismatch **Line 9** must be replaced with below:
`const DEFAULT_FIREBASE_TYPE = 'FCM';`
Still one will face below errors:
` Welcome to the JHipster Firebase generator! v0.0.5
? Which *type* of would you like to add? Firebase Cloud Messaging
? Please enter your Firebase server key... 1234bcnxbc
? Please enter your Firebase API URL... https://fcm.googleapis.com/fcm/send
TypeError: Cannot read property 'firebaseType' of undefined
at \node_modules\@xiges\generator-jhipster-firebase\generators\app\index.js:96:48
at processTicksAndRejections (internal/process/task_queues.js:94:5)`
I think class needs to have below properties:
- firebaseType
- firebaseServerKey
- firebaseApiURL
installing: npm i @xiges/generator-jhipster-firebase running: yo @xiges/jhipster-firebase
result: Just found a
.yo-rc.json
in a parent directory. Setting the project root at: /Users/joerg/git/tdmanager██████ ██████ ██████ ██████ ██████ ██ ███████ ██████ ██ ██ ██ ██ ██ █ ██ ████ ██ ██
██████ ██ █████ ████ ████ █ █ ███████ ████
██ ██ ██ ██ ██ █ ██ █ ██ █ ██ ██
██ ██████ ██ ██ ██████ ██████ █ █ ███████ ██████
Welcome to the JHipster Firebase generator! v0.0.5
ReferenceError: DEFAULT_FIREBASE_TYPE is not defined at module.exports.prompting (/Users/joerg/git/tdmanager/node_modules/@xiges/generator-jhipster-firebase/generators/app/index.js:66:21) at Object. (/Users/joerg/git/tdmanager/node_modules/yeoman-generator/lib/index.js:647:25)
at /Users/joerg/git/tdmanager/node_modules/run-async/index.js:47:25
at new Promise ()
at /Users/joerg/git/tdmanager/node_modules/run-async/index.js:24:19
at self.env.runLoop.add.once.once (/Users/joerg/git/tdmanager/node_modules/yeoman-generator/lib/index.js:648:11)
at processImmediate (internal/timers.js:439:21)
at process.topLevelDomainCallback (domain.js:131:23)
INFO! Using JHipster version installed globally INFO! Executing jhipster:info INFO! Options: from-cli: true
Just found a
.yo-rc.json
in a parent directory. Setting the project root at: /Users/joerg/git/tdmanager Welcome to the JHipster Information Sub-GeneratorJHipster Version(s)
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Environment and Tools
openjdk version "11.0.6" 2020-01-14 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.6+10) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.6+10, mixed mode)
git version 2.23.0
node: v12.13.0
npm: 6.12.0
yeoman: 3.1.1
yarn: 1.22.4
Docker version 19.03.8, build afacb8b
docker-compose version 1.25.4, build 8d51620a
INFO! Congratulations, JHipster execution is complete!