question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ng new --prefix seems to be ignored

See original GitHub issue
- [x ] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.0.0 node: 6.10.1 os: win32 x64

Repro steps.

ng new AppshellSample --prefix app-shell --style scss --routing -d

The log given by the failure.

installing ng You specified the dry-run flag, so no changes will be written. create .editorconfig create README.md create src\app\app-routing.module.ts create src\app\app.component.scss create src\app\app.component.html create src\app\app.component.spec.ts create src\app\app.component.ts create src\app\app.module.ts create src\assets.gitkeep create src\environments\environment.prod.ts create src\environments\environment.ts create src\favicon.ico create src\index.html create src\main.ts create src\polyfills.ts create src\styles.scss create src\test.ts create src\tsconfig.app.json create src\tsconfig.spec.json create src\typings.d.ts create .angular-cli.json create e2e\app.e2e-spec.ts create e2e\app.po.ts create e2e\tsconfig.e2e.json create karma.conf.js create package.json create protractor.conf.js create tsconfig.json create tslint.json Project ‘AppshellSample’ successfully created.

Desired functionality.

this part: create src\app\app-routing.module.ts create src\app\app.component.scss create src\app\app.component.html create src\app\app.component.spec.ts create src\app\app.component.ts create src\app\app.module.ts

Should be: create src\app-shell\app-shell-routing.module.ts create src\app-shell\app-shell.component.scss create src\app-shell\app-shell.component.html create src\app-shell\app-shell.component.spec.ts create src\app-shell\app-shell.component.ts create src\app-shell\app-shell.module.ts

Mention any other details that might be useful.

Sometimes you just need a differently named top-level component.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
SanderEliascommented, Apr 10, 2017

@clydin @PascalPrecht, I have discussed this with the style-guide (That materialised to me in the form of @wardbell ) and what I need and want is allowed by the guide. After some more digging, it turns out to be a bug in the CLI. I will keep this item closed, as the actual problem has nothing to do with --prefix.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 7, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

angular2 how to change the default prefix of component to ...
If creating a new project using Angular cli use this command line option ng new project-name --prefix myprefix.
Read more >
Troubleshoot EIGRP Common Issues - Cisco
This document describes how to troubleshoot the most common Enhanced Interior Gateway Routing Protocol (EIGRP) issues.
Read more >
Angular workspace configuration
The initial application that you create with ng new app_name is listed under "projects": ... prefix, A string that Angular prepends to created...
Read more >
Defining metadata (meta.yaml) - Conda
Ignore prefix files . Used to exclude some or all of the files in the build recipe from the list of files...
Read more >
Add and remove/delete/ignore printers - PaperCut
Stop new printers from being automatically added to PaperCut NG/MF: ... edit the file /etc/cups/printers.conf and prefixes the DeviceURI with papercut:, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found