mean-expert-official / fireloop.io

Modern Real-Time Platform by MEAN Expert
Other
172 stars 36 forks source link

Error when calling Model generator #75

Closed roboflank closed 7 years ago

roboflank commented 7 years ago

What type of issue are you creating?

What version of this module are you using?

I update my CLI to 1.0.0-beta.2.4 and now i cant be able to do a fireloop model Modelname

Anything changed?

roboflank commented 7 years ago

events.js:163 throw er; // Unhandled 'error' event ^ Error: No API server was found

Am getting this error.

roboflank commented 7 years ago

Fixed this, by adding server dir to the config

roboflank commented 7 years ago

Running into another error

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

Error: You don’t seem to have a generator with the name “loopback:model” installed.

jonathan-casarrubias commented 7 years ago

@denzelwamburu yes something changed actually.

Since you can now set the name of the API directory, previously was fireloop by default, now there is an extra configuration within the .yo-rc file

In order for your project to work with the new cli, you will just need to update the yo-rc file as follows

  "generator-fireloop": {
    "version": "1.0.0-beta.2.3",
    "clients": {
      ----- HERE YOUR CURRENT APP ------
      "fireloop": {
        "path": "./fireloop",
        "type": "server"
      }
    }
  }
}

Or you can also create a new project and migrate your code, just keep the new setup.

Cheers Jon

roboflank commented 7 years ago

Thanks, I figured that out. Though my model generator still throwing an error.

On Wed, Apr 12, 2017, 20:12 Jonathan Casarrubias notifications@github.com wrote:

@denzelwamburu https://github.com/denzelwamburu yes something changed actually.

Since you can now set the name of the API directory, previously was fireloop by default, now there is an extra configuration within the .yo-rc file

In order for your project to work with the new cli, you will just need to update the yo-rc file as follows

"generator-fireloop": { "version": "1.0.0-beta.2.3", "clients": { ----- HERE YOUR CURRENT APP ------ "fireloop": { "path": "./fireloop", "type": "server" } } } }

Or you can also create a new project and migrate your code, just keep the new setup.

Cheers Jon

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mean-expert-official/fireloop.io/issues/75#issuecomment-293646479, or mute the thread https://github.com/notifications/unsubscribe-auth/AGOuF2vs42BcBzY92iIWdUykM1S5KmWfks5rvQYWgaJpZM4M1nph .

jonathan-casarrubias commented 7 years ago

I just verified and I'm able to create models without any problem.

Try with a clean installation and see if the problem persist