Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when generating new route (Windows) #219

Closed
fursad opened this issue Feb 18, 2016 · 2 comments
Closed

Error when generating new route (Windows) #219

fursad opened this issue Feb 18, 2016 · 2 comments

Comments

@fursad
Copy link

fursad commented Feb 18, 2016

I'm getting this error when trying to generate a new route. Am I missing something or is it a bug?

$ ng generate route hero
version: 1.13.13
installing route
create app\routes\hero.js
create app\templates\hero.hbs
ENOENT: no such file or directory, open 'C:\angular\test01\app\router.js'
Error: ENOENT: no such file or directory, open 'C:\angular\test01\app\router.js'
at Error (native)
at Object.fs.openSync (fs.js:549:18)
at Object.fs.readFileSync (fs.js:397:15)
at writeRoute (C:\angulkar\test01\node_modules\angular-cli\node_modules\ember-cli\blueprints\route\index.js:116:19)
at Class.updateRouter (C:\angulkar\test01\node_modules\angular-cli\node_modules\ember-cli\blueprints\route\index.js:95:5)
at Class.module.exports.afterInstall (C:\angulkar\test01\node_modules\angular-cli\node_modules\ember-cli\blueprints\route\index.js:78:18)
at lib$rsvp$$internal$$tryCatch (C:\angulkar\test01\node_modules\angular-cli\node_modules\ember-cli\node_modules\rsvp\dist\rsvp.js:1036:16)
at lib$rsvp$$internal$$invokeCallback (C:\angulkar\test01\node_modules\angular-cli\node_modules\ember-cli\node_modules\rsvp\dist\rsvp.js:1048:17)
at lib$rsvp$$internal$$publish (C:\angulkar\test01\node_modules\angular-cli\node_modules\ember-cli\node_modules\rsvp\dist\rsvp.js:1019:11)
at lib$rsvp$asap$$flush (C:\angulkar\test01\node_modules\angular-cli\node_modules\ember-cli\node_modules\rsvp\dist\rsvp.js:1198:9)

@filipesilva
Copy link
Contributor

Unfortunately we are late in cutting a new build. For this functionality to work, you need to be using the latest master.

See here for instructions: https://github.com/angular/angular-cli#working-with-master

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants