-
Notifications
You must be signed in to change notification settings - Fork 12k
ng g component .\components\side-panel creates wrong entry in app.module.ts file #2229
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
Try version 1.0.0-beta.15 f6fa1a5 looks like it fixes this, and it's included in 1.0.0-beta.15. |
Fixed in #1961 |
I checked in 1.0.0-beta.15 its still creating backward slash instead of forward. |
@nairvishal I just tried with |
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. |
Using :-
angular-cli: 1.0.0-beta.14
node: 4.5.0
os: win32 x64
I created a components folder inside app folder. So to create my component files directly inside the 'components' folder i used
ng g component .\components\side-panel
and it created the files correctly but the entry made in app.module.ts was like thisimport { SidePanelComponent } from './components\side-panel/side-panel.component';
and that caused the below error.
Error:-
ERROR in [default] F:\Angular2Projects\TrialApp\src\app\app.module.ts:9:35
Cannot find module './componentsside-panel/side-panel.component'.
I manually corrected the slash in the link.
The text was updated successfully, but these errors were encountered: