What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-12 03:50:39
angular get version from package.json
In your /tsconfig.json (sometimes also necessary in /src/tsconfig.app.json) enable the resolveJsonModule option (webpack dev server restart required afterwards): "compilerOptions": { ... "resolveJsonModule": true .... Add solution -
TypeScript 2022-01-22 06:16:41
Generic type 'ModuleWithProviders<T>' requires 1 type argument(s).
// Add in app.module.ts declare module "@angular/core" { interface ModuleWithProviders<T = any> { ngModule: Type<T>; providers?: Provider[]; } } // OR add in tsconfig.app.json "skipLibCheck": true; { "... Add solution -
Javascript 2021-11-01 15:34:16
generate angular.json for existing project
{ "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "project": { "name": "my-app" }, "apps": [ { "root": "src", "outDir": ... Add solution -
Other 2021-09-28 11:44:06
Cannot read property 'config' of null
{ "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "project": { "name": "PROJECT_NAME" }, "apps": [ { "root": "src", "outDir&q... Add solution