What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-04 13:40:06
Consider using '--resolveJsonModule
add "resolveJsonModule": true key in tsconfig.json { "compilerOptions": { "target": "es2015", "module": "commonjs", "strict": true, "moduleResolution": &quo... Add solution -
TypeScript 2022-03-04 10:25:34
roperty 'form' has no initializer and is not definitely assigned in the constructor.
Just go to tsconfig.json and set "strictPropertyInitialization": false to get rid of the compilation error. Otherwise you need to initialize all your variables which is a little bit annoying Add solution -
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