Error: Please, upgrade your dependencies to the actual version of core-js@3

You should be able to simply update the version of the core-js module that is requested within the warning message: npm install –save core-js@^3 For what it’s worth npm has a nifty feature that lets you see which packages are outdated npm outdated You can also update packages to the latest versions using the update … Read more

Can I pass arguments to angular-cli at build-time

It is possible to create multiple configuration files with @angular/cli. As mentioned in docs custom configuration files can be add in the following way: create a src/environments/environment.NAME.ts add { “NAME”: ‘src/environments/environment.NAME.ts’ } to the apps[0].environments object in .angular-cli.json use them via the –env=NAME flag on the build/serve commands. So, you would probably need 6 config … Read more

Set base href from an environment variable with ng build

You would have to use APP_BASE_HREF @NgModule({ providers: [{provide: APP_BASE_HREF, useValue: environment.baseHref }] }) class AppModule {} See angular doc EDIT Since CSS/JS does not work with APP_BASE_HREF, you can do this: In app.component.ts, inject DOCUMENT via import {DOCUMENT} from “@angular/platform-browser”; constructor(@Inject(DOCUMENT) private document) { } Then on your ngOnInit() ngOnInit(): void { let bases … Read more

Whats the default path for static files in Angular2?

According to the current angular-cli readme (v1.0.1): You use the assets array in angular-cli.json to list files or folders you want to copy as-is when building your project: “assets”: [ “assets”, “favicon.ico” ] By default the assets folder is configured for this, so you can place your files into a structure like ├── src . … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)