ericmdantas / generator-ng-fullstack

Client, server or fullstack - it's up to you. ng-fullstack gives you the best of the latest.
MIT License
704 stars 103 forks source link

go projects don't work #46

Closed jfelten closed 8 years ago

jfelten commented 9 years ago

I was able to create a go project, and was able to make it run by manually removing hte githib imports in main.go. None of the tests work due to invalid imports in the todo classes Ex: go test ./... -cover -bench .

api/todo/routes/todoroutes.go:4:2: invalid import path: "github.com/<%= username %>/<%= appName %>/server/api/todo/controller"

If I try to add my own endpoint following the documentation:

yo ng-fullstack:endpoint skate --feature skateboard module.js:338 throw err; ^ Error: Cannot find module '../known-paths' at Function.Module._resolveFilename (module.js:336:15)

It seems to have a missing nodejs dependency.

ericmdantas commented 9 years ago

@jfelten Thank you for the feedback, I'll take a look when I get home.

ericmdantas commented 9 years ago

The first error: Yeah, there's definetely a bug. I'll fix it as soon as possible. The known-paths thing: I couldn't reproduce it. Maybe releasing a new version might fix it.

charliegroll commented 9 years ago

Bump on this issue

I get this same error when trying yo ng-fullstack:resource Event --feature event in a node app

[10:26]:elapsed % yo ng-fullstack:resource Event --feature event module.js:338 throw err; ^

Error: Cannot find module '../known-paths'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:286:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/generator-ng-fullstack/resource/index.js:5:18)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
ericmdantas commented 9 years ago

Hello, @charliegroll.

That's a different error, though. Do the other sub generators work? Like controller, service, etc?

charliegroll commented 9 years ago

I get the same error for service and filter

On Oct 17, 2015, at 10:53 AM, Eric Mendes Dantas notifications@github.com wrote:

Hello, @charliegroll https://github.com/charliegroll.

That's a different error, though. Do the other sub generators work? Like controller, service, etc?

— Reply to this email directly or view it on GitHub https://github.com/ericmdantas/generator-ng-fullstack/issues/46#issuecomment-148921544.

ericmdantas commented 9 years ago

Alright, I'm taking a look.

ericmdantas commented 9 years ago

I got to simulate it with the latest version published.

Good news is that it's working alright with the master version and I'm about to release it.

charliegroll commented 9 years ago

Awesome, thanks!

ericmdantas commented 9 years ago

@charliegroll I published 1.5.0-0, could you give it a try?

charliegroll commented 9 years ago

I updated ng-fullstack from the yo prompts and still get the error

On Oct 17, 2015, at 7:34 PM, Eric Mendes Dantas notifications@github.com wrote:

@charliegroll https://github.com/charliegroll I published 1.5.0-0, could you give it a try?

— Reply to this email directly or view it on GitHub https://github.com/ericmdantas/generator-ng-fullstack/issues/46#issuecomment-148960641.

ericmdantas commented 9 years ago

@charliegroll could you uninstall and install it again?

npm uninstall -g generator-ng-fullstack npm i -g generator-ng-fullstack

charliegroll commented 9 years ago

I completely reinstalled it and I'm still seeing 1.4 in the package.json

[20:27]:generator-ng-fullstack (master|✔) % head package.json
{
  "name": "generator-ng-fullstack",
  "version": "1.4.0",
  "description": "Yeoman generator",
  "license": "MIT",
  "main": "app/index.js",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/ericmdantas/generator-ng-fullstack.git"
  },
ericmdantas commented 9 years ago

oh, try installing it as generator-ng-fullstack@latest or generator-ng-fullstack@1.5.0-0

charliegroll commented 9 years ago

I can't start a project from nothing now

[21:18]:elapsed % yo
? 'Allo Charlie! What would you like to do? Ng Fullstack

Make sure you are in the directory you want to scaffold into.
This generator can also be run with: yo ng-fullstack

     _-----_
    |       |    .-----------------------.
    |--(o)--|    |      Bye from us!     |
   `---------´   |       Chat soon.      |
    ( _´U`_ )    |      Yeoman team      |
    /___A___\    |    http://yeoman.io   |
     |  ~  |     '-----------------------'
   __'.___.'__
 ´   `  |° ´ Y `

readline.js:924
            throw err;
            ^

Error: Cannot find module '../_ng/generator.js'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:286:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/generator-ng-fullstack/app/index.js:29:22)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
ericmdantas commented 9 years ago

1.5.1-0 published. Coud you try that?

charliegroll commented 9 years ago

Created a new project and installed a resource. Thanks!

[19:50]:elapsed % yo ng-fullstack:resource Event --feature event
   create client/dev/js/event/resource/Event.resource.js
ericmdantas commented 9 years ago

Awesome! Thanks for trying it out.

ericmdantas commented 8 years ago

Just so we're clear, this error:

yo ng-fullstack:endpoint skate --feature skateboard module.js:338 throw err; ^ Error: Cannot find module '../known-paths' at Function.Module._resolveFilename (module.js:336:15)

Is already solved. The go one is still around.