-
Notifications
You must be signed in to change notification settings - Fork 12k
ng g component my-component
adds Backslashes on app.module.ts on Windows
#2132
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
Comments
Same here Environment :angular-cli: 1.0.0-beta.11-webpack.8 |
The issue is still there with the cli beta 15
Anybody looking into it? |
It'd be really nice if we could get a quick response from the team acknowledging this issue. This isn't some breaking bug, but given the cross-platform nature, proper path generation is more an expected functionality than a nice to have feature. |
Dupe of #1719, already fixed. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Environment :
Windows 10
angular-cli: 1.0.0-beta.14
node: 6.3.1
os: win32 x64
Reproduce
ng new newapp
.mkdir app/feature && cd app/feature
ng g component my-component
Error
Helpful informations
Details : On Windows, in the app.module.ts, the path is created using a backslash as first char after the current path.
import { RegisterFormComponent } from './feature\register-form/register-form.component';
should become:
import { RegisterFormComponent } from './feature/register-form/register-form.component';
The text was updated successfully, but these errors were encountered: