After updating to Angular 6.0.1, I get the following error on ng serve:
Could not find module "@angular-devkit/build-angular" from "/home/Projects/myProjectName".
Error: Could not find module "@angular-devkit/build-angular" from…
My npm version is 5.5.1 and angular cli version is 6.2.1. When I try to create a new project using the command ng new Project_name then it is creating the latest version of Angular (in my case it is creating Angular version ^6.1.0), but I want…
I want to use the Google Maps API with my Angular project, so I used these two commands to install npm packages:
npm install @agm/core --save-dev
npm install @types/googlemaps --save-dev
I added this line to my component:
import {} from…
I'm converting a library (ng-app-state) to use the angular cli, now that v6 supports libraries (yay!).
After scaffolding and copying in some code, here is my first question:
How/where do I add 3rd party dependencies?
To package.json, or to…
This question is specific to version 6 of Angular, not earlier, since .angular-cli.json file had been replaced by angular.json file.
I created a new Angular 6 project and tried, as I always did with previous versions, to change its default port but…
Angular CLI creates vendor.js and I don't know Why and What is the use of it?? Size of this file is about 3.2MB for a new app!!
Does this file contains Angular 6 Javascript Source?
Don't you think this is big file for loading on internet on low…
When I want to execute my tests, I used to have the option --single-run activated, but after upgrading to Angular 6 it is not recognized anymore.
> ng test --source-map=false --single-run --no-progress --browsers=ChromeNoSandbox
Unknown option:…
In angular 6 project, I created angular library using angular cli command ng g lierary @some/libName. In my library, I have a component which needs @ng-bootstrap/ng-bootstrap, so I added it by npm i --save @ng-bootstrap/ng-bootstrap.
When I try to…
There are two sub-questions:
Should I put secret environment variables in the environment.ts file?
The process variable shim is gone. If I use it, tsc will throw an error: Cannot find name 'process'.
Here is my thing:
About Q1: I don't think put…
How can you setup a index.scss and import global stylesheets for variables, mixins, etc, to an angular 6 library?
Angular CLI generates a lib with a root component & component scss, but the styles added or imported to the root component are not…
I am trying to turn off sourcemaps for my tests in Angular 6. I know the sourcemaps switch has been removed, e.g., ng test --sourcemaps=false.
I have tried modifying my tsconfig file:
{
"extends": "../tsconfig.json",
"compilerOptions": {
...
…
I need to create ten Angular components like comp1, comp2, comp3, comp4, ..., comp10.
So I need to execute same command for ten times for each component like ng g c comp1, ng g c comp2, etc.
Is there any option to generate multiple angular…
I am not sure what I am doing wrong:
I am following the tutorial here, but I keep getting the following error:
ENOENT: no such file or directory, open
'C:\Users\andrewkp\Documents\VSCode\Projects\node_modules\jquery\dist\jquery.min.js'
Error:…
I'm writing an Angular 6 Library and cannot figure out how to step into the typescript.
I generated the app using: ng new mylibapp
I then added the library using: ng g library @abc/cool-lib -p abc
when I perform: ng build @abc/cool-lib
it generates…