When trying to create a new route it's breaking in the generator, it seems like it's looking for the wrong location of app.js. (This is my guess)
It looks like it's pointing to /app/scripts/app.js
when the file is in client/app.js
c:\NodeApps\MyApp>yo angular:route team
fs.js:565
fs.write = function(fd, buffer, offset, length, position, callback) {
^
Error: ENOENT, no such file or directory 'c:\NodeApps\MyApp\app\scripts\ap
p.js'
at Error (native)
at Object.fs.openSync (fs.js:500:18)
at Object.fs.readFileSync (fs.js:352:15)
at new Generator (C:\Users\mark.name\AppData\Roaming\npm\node_modules\gen
erator-angular\route\index.js:18:29)
at Environment.instantiate (C:\Users\mark.name\AppData\Roaming\npm\node_m
odules\yo\node_modules\yeoman-environment\lib\environment.js:297:10)
at Environment.create (C:\Users\mark.name\AppData\Roaming\npm\node_module
s\yo\node_modules\yeoman-environment\lib\environment.js:274:15)
at Environment.run (C:\Users\mark.name\AppData\Roaming\npm\node_modules\y
o\node_modules\yeoman-environment\lib\environment.js:333:24)
at C:\Users\mark.name\AppData\Roaming\npm\node_modules\yo\lib\cli.js:97:9
at Environment.resolver.lookup (C:\Users\mark.name\AppData\Roaming\npm\no
de_modules\yo\node_modules\yeoman-environment\lib\resolver.js:50:12)
at init (C:\Users\mark.name\AppData\Roaming\npm\node_modules\yo\lib\cli.j
s:71:7)
Here is my .yo.rc.json file: You can see the generator-ng-component section is there and it's all pointing to /client/app.
When trying to create a new route it's breaking in the generator, it seems like it's looking for the wrong location of app.js. (This is my guess)
It looks like it's pointing to
/app/scripts/app.js
when the file is inclient/app.js
Here is my .yo.rc.json file: You can see the generator-ng-component section is there and it's all pointing to /client/app.
Any ideas?