ng serve throwing error - ERROR in Could not resolve module /C/ i 「wdm」: Failed to compile.
See original GitHub issueBug Report or Feature Request (mark with an x)
- [X ] bug report -> please search issues before submitting
- [ ] feature request
Command (mark with an x)
- [ ] new
- [ ] build
- [X ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Versions
node version v8.11.3 npm version 6.4.1
Repro steps
https://github.com/DeborahK/Angular-GettingStarted
Run the project in VS code (folder APM-Start)
The log given by the failure
ng serve -o
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ ** Date: 2018-12-10T00:54:55.452Z Hash: aa987cb762275e989b79 Time: 4786ms chunk {main} main.js, main.js.map (main) 1.87 kB [initial] [rendered] chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 92.4 kB [initial] [rendered]4 kB [initial] [rendered] try] [rendered] chunk {runtime} runtime.js, runtime.js.map (runtime) 6.08 kB [enl] [rendered]try] [rendered] ] [rendered] chunk {styles} styles.js, styles.js.map (styles) 16.5 kB [initial] [rendered] chunk {vendor} vendor.js, vendor.js.map (vendor) 318 kB [initial] [rendered]
ERROR in Could not resolve module /C/ i 「wdm」: Failed to compile.
Desired functionality
Application must run fine (load index.html page)
Mention any other details that might be useful
Running the project in VS Code environment
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (3 by maintainers)

Top Related StackOverflow Question
I had simmilar bug, and in my case it was because the folder had in the name “#”. I was doing a project on C# and put on the project on "C:/Code/C#"and I changed the name to “C:/Code/CSharp” and solved my problem. I saw that some people put the project on "H:/#httpdocs"and the “#” my be the cause.
I believe we can close this issue now. As it continues to appear in my machine and others are unable to reproduce