0
votes

I am trying to generate a jhipster application but i only want the frontend .... the command I am running is

jhipster --skip-server --auth jwt

The error i get it

events.js:173
      throw er; // Unhandled 'error' event
      ^

Error: ERROR! When using skip-server flag, you must pass a database option and authentication type using --db and --auth flags
    at Environment.error (C:\Users\AppData\Roaming\npm\node_modules\generator-jhipster\node_modules\yeoman-environment\lib\environment.js:157:40)
    at module.exports.error (C:\Users\AppData\Roaming\npm\node_modules\generator-jhipster\generators\generator-base.js:1488:18)
    at module.exports.validateSkipServer (C:\Users\AppData\Roaming\npm\node_modules\generator-jhipster\generators\client\index.js:159:26)
    at Object.<anonymous> (C:\Users\AppData\Roaming\npm\node_modules\generator-jhipster\node_modules\yeoman-generator\lib\index.js:418:27)
    at C:\Users\AppData\Roaming\npm\node_modules\generator-jhipster\node_modules\run-async\index.js:25:25
    at new Promise (<anonymous>)
    at C:\Users\AppData\Roaming\npm\node_modules\generator-jhipster\node_modules\run-async\index.js:24:19
    at self.env.runLoop.add.completed (C:\Users\AppData\Roaming\npm\node_modules\generator-jhipster\node_modules\yeoman-generator\lib\index.js:419:13)
    at processImmediate (timers.js:637:19)
Emitted 'error' event at:
    at Immediate.setImmediate (C:\Users\AppData\Roaming\npm\node_modules\generator-jhipster\node_modules\yeoman-generator\lib\index.js:427:22)
    at processImmediate (timers.js:637:19)

But i dont want a DB at all i just need a nice front end application

1
Then why use JHipster? Use the Angular CLI to build the client app directly. - jonrsharpe
The generated client has a menu for database depending on which db you select for backend. Why don't try and see what's generated ? - Gaƫl Marziou

1 Answers

1
votes

Ive just tried with --db sql,
then changed path in webpack.common.js SERVER_API_URL: working fine.
So this key says what db is on your backend, and yes, it's confusing.