Questions tagged [angular2-cli]
124 questions
0
votes
1 answer
ng-cli error in Node js 7.x
I am using Windows 10.
I installed nodejs 7.4.0 using windows installer.
I installed typescript globally.
I installed ng-cli globally.
Then I went to command prompt into my new project folder and did "ng init".
It throws the following…

Adam
- 1,221
- 4
- 13
- 27
0
votes
0 answers
angular2-cli ng2 serve problems with typescript exclude property
I try to serve a sample application with angular2-cli
https://www.npmjs.com/package/angular2-cli
But always encounter with the same error : Error in .src/main.ts
Module build failed: TypeError: Cannot read property 'exclude' of undefined at…

RedArrow
- 588
- 8
- 18
0
votes
2 answers
"Error: AccountRoutingModule is not an NgModule"
Upgrading my Angular 2.2.3 application from Angular CLI 2.0.0-beta.21 to Angular CLI 2.0.0-beta.22-1, my ng build now fails with:
Error: AccountRoutingModule is not an NgModule
at AotPlugin.getNgModuleMetadata…

Jan Nielsen
- 10,892
- 14
- 65
- 119
0
votes
1 answer
Intellisense with 3rd part libraries and angular-cli
In a project created with angular2-cli I need to use some 3rd part javascript libraries that should be available in the global javascript scope (for example TWEEN namespace from the tween.js library).
Accordingly to the angular-cli guide to install…

revy
- 3,945
- 7
- 40
- 85
0
votes
1 answer
Angular 2 CLI project; when I change and save something in child component which is in a subdirectory, live server does not reload the page
Angular2 CLI project; Using Linux machine; Atom IDE
NG Live Development Server is running on http://localhost:4200,
When I change and save something in root or app component, server automatically detect the changes and reload the page and shows…

SayedRakib
- 181
- 1
- 2
- 10
0
votes
0 answers
where is the @ngmodule in a new angular2-cli project?
I created a new project with the angular 2 cli: ng new mycoolngapp
However, I noticed that unlike other angular 2 projects, this one doesn't have a @ngModule.
Can someone explain why?
version info:
angular-cli: 0.1.0
node: 5.0.0
os: darwin…

user2457459
- 37
- 1
- 1
- 7
0
votes
2 answers
Class has or is using name 'SafeUrl' from external module but cannot be named
I'm using sanitizer.bypassSecurityTrustUrl to put links to blobURL's on the page. This works just fine as long as I don't AoT compile the project.
import {DomSanitizer} from '@angular/platform-browser';
export class AppComponent {
…

mottosson
- 3,283
- 4
- 35
- 73
0
votes
1 answer
App looks and behaves differently after bundling using Webpack
I recently moved my Angular 2 project from SystemJS to Webpack, using the most recent version of Angular2-CLI. The project files were barely changed, and only small changes within the Angular2 code were made to fit the project into the new…

fingeron
- 1,152
- 1
- 9
- 20
0
votes
2 answers
Angular2-moment with Angular2-cli installation
I have installed angular2-moment into angular2-cli. While installing, angular2-cli does not have system.js, so where can I put these settings into?
https://github.com/urish/angular2-moment/#for-systemjs-users
Also I'm also getting following error:

Basit
- 16,316
- 31
- 93
- 154
0
votes
0 answers
Error after uploading my angular 2 app to the server
I have created an app using angular2-cli and angular RC.6.
I generated my app build for production and uploaded the files to my server.
Before uploading to my main website, I uploaded it to my dev.mywebsite.com development URL and the app worked…

TheUnreal
- 23,434
- 46
- 157
- 277
0
votes
1 answer
How can I migrate an existing application to using CLI?
We have an existing Angular 2 application that we're interested in using the CLI for its build step.
Is there any information out there on achieving this? I wasn't able to find anything other than creating projects from scratch.

onetwothree
- 672
- 1
- 10
- 20
0
votes
1 answer
Angular 2 strange error after uploading dist folder
My app worked great so far, I've been working on few updates and then I uploaded my new generated dist folder to my website.
Suddenly I get this error: main.5b5a7be….bundle.js:31 Uncaught SyntaxError: missing ) after argument list
Now different…

TheUnreal
- 23,434
- 46
- 157
- 277
0
votes
2 answers
Angular 2 CLI + Webpack ng build --prod big warning
my app builds fine. but when I build for production by typing
ng build --prod
in my console, I get the following giant warning and strange dist output:
WARNING in main.ff67c2edc2d42d6adb60.bundle.js from UglifyJs
Condition always true…

TheUnreal
- 23,434
- 46
- 157
- 277
0
votes
1 answer
build error while using ng build
I getting this error:
"You have to be inside an angular-cli project in order to use the build command" after creating a new angular2 app from the CLI.
I'm inside the project dir and I don't understand the meaning of the error.

Ace
- 831
- 2
- 8
- 28
0
votes
2 answers
Angular 2 material with Angular CLI
So far I used angular 2 quickstart to create a new project.
I decided to start using the angular 2 cli and created a new angular 2 cli project.
Moved all my filese and installed all packages again.
Now, when I'm trying to use the angular 2…

TheUnreal
- 23,434
- 46
- 157
- 277