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

ng build -w requires the -o option too? #2555

Closed
DavideViolante opened this issue Oct 6, 2016 · 4 comments
Closed

ng build -w requires the -o option too? #2555

DavideViolante opened this issue Oct 6, 2016 · 4 comments

Comments

@DavideViolante
Copy link

Version: angular-cli-beta.16

Repro steps.

If I run "ng build" it works.
If I run "ng build -o dist -w" it works.
If I run "ng build -w" I get this error:

Path must be a string. Received null
TypeError: Path must be a string. Received null
    at assertPath (path.js:7:11)
    at Object.resolve (path.js:184:7)
    at Class.run (F:\Dave\Learning\Angular\Angular2-Full-Stack\node_modules\angular-cli\tasks\build-webpack-watch.js:14:26)
    at Class.run (F:\Dave\Learning\Angular\Angular2-Full-Stack\node_modules\angular-cli\commands\build.js:50:26)
    at Class.<anonymous> (F:\Dave\Learning\Angular\Angular2-Full-Stack\node_modules\angular-cli\lib\models\command.js:152:17)
    at tryCatch (F:\Dave\Learning\Angular\Angular2-Full-Stack\node_modules\rsvp\dist\lib\rsvp\-internal.js:215:12)
    at invokeCallback (F:\Dave\Learning\Angular\Angular2-Full-Stack\node_modules\rsvp\dist\lib\rsvp\-internal.js:230:13)
    at F:\Dave\Learning\Angular\Angular2-Full-Stack\node_modules\rsvp\dist\lib\rsvp\then.js:29:16
    at flush (F:\Dave\Learning\Angular\Angular2-Full-Stack\node_modules\rsvp\dist\lib\rsvp\asap.js:85:5)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)
@Meligy
Copy link
Contributor

Meligy commented Oct 6, 2016

It shouldn't. It's a bug.

It's reported here #2511, so for the sake of organisation this issue can be closed as duplicate, and you can subscribe to the other issue to be informed when it's fixed.

@DavideViolante
Copy link
Author

Sorry, didn't see that. Closing, duplicate here: #2511

@filipesilva
Copy link
Contributor

Closing as dupe #2511

@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 6, 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

3 participants