Windows Script Host Error: Invalid character – Code:800A03F6 – Source: Microsoft JScript compilation error

Update: On Windows .js files are associated to Windows Scripting Host by default, so the script will not be run with Node. Open a file explorer and find a JavaScript file, open the JavaScript file’s properties and then “open with”, select the Node.js program file to open that kind of files. The error should stop … Read more

Avoiding relative paths in Angular CLI

Per this comment, you can add your application source via paths in tsconfig.json: { “compilerOptions”: { …, “baseUrl”: “.”, “paths”: { …, “@app/*”: [“app/*”], “@components/*”: [“components/*”] } } } Then you can import absolutely from app/ or components/ instead of relative to the current file: import {TextInputConfiguration} from “@components/configurations”; Note: baseUrl must be specified if … Read more

Implementing a plugin architecture / plugin system / pluggable framework in Angular 2, 4, 5, 6

Update For Angular 11 I strongly recommend you to take a look at implementation with Webpack 5 Module Federation 🎉 https://github.com/alexzuza/angular-plugin-architecture-with-module-federation Previos version 🛠️ Github demo angular-plugin-architecture Maybe Ivy can change something but for the time being I use the solution that uses Angular CLI Custom Builder and meets the following requirements: AOT avoid duplicate … Read more

How to uninstall/upgrade Angular CLI?

Using following commands to uninstall : npm uninstall -g @angular/cli npm cache clean –force To verify: ng –version /* You will get the error message, then u have uninstalled */ Using following commands to re-install : npm install -g @angular/cli Notes : – Using –force for clean all the caches – On Windows run this … Read more

How to iterate using ngFor loop Map containing key as string and values as map iteration

For Angular 6.1+ , you can use default pipe keyvalue ( Do review and upvote also ) : <ul> <li *ngFor=”let recipient of map | keyvalue”> {{recipient.key}} –> {{recipient.value}} </li> </ul> WORKING DEMO For the previous version : One simple solution to this is convert map to array : Array.from Component Side : map = … Read more