Closed
Description
Please provide us with the following information:
OS?
Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Linux (openSUSE)
Versions.
Please run
ng --version
. If there's nothing outputted, please run in a Terminal:node --version
and paste the result here:
@angular/cli: 1.0.0-beta.30
node: 7.2.1
os: linux x64
Repro steps.
Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
- Create a new project
- cd into folder
ng serve --aot --output-path=./
The log given by the failure.
Path must be a string. Received null
TypeError: Path must be a string. Received null
at assertPath (path.js:7:11)
at Object.dirname (path.js:1324:5)
at new NgCliWebpackConfig (/home/developer/Documents/project/node_modules/@angular/cli/models/webpack-config.js:10:32)
at Class.run (/home/developer/Documents/project/node_modules/@angular/cli/tasks/serve.js:31:29)
at /home/developer/Documents/project/node_modules/@angular/cli/commands/serve.run.js:22:22
at process._tickCallback (internal/process/next_tick.js:103:7)
I know I was wrong with this output-path, but I wouldn't think it is the correct way to delete the working directory if the output-path is null. Anyways, can someone give me an advice how to restore my project? It was only in a local repo... (yeah I know...)
Metadata
Metadata
Assignees
Labels
No labels