angular10

Angular 10, TypeError in browser console, but no error in build

跟風遠走 提交于 2020-12-14 23:40:10
问题 No code changes done, upgraded to Angular 10, everything works except a feature. There were no build errors, but in browser console able to see below error. I guess this may be related to angular.core, rxjs, but unclear..appreciate your help. core.js:4197 ERROR TypeError: templateRef.createEmbeddedView is not a function at ViewContainerRef.createEmbeddedView (core.js:10092) at NgTemplateOutlet.ngOnChanges (ng_template_outlet.ts:65) at NgTemplateOutlet

resolveJsonModule not functioning with Angular 10?

亡梦爱人 提交于 2020-12-05 12:47:51
问题 I have a basic JSON file in my assets folder of a brand new Angular 10 project. Angular CLI: 10.0.1 Node: 14.5.0 OS: win32 x64 TSC version 3.9.5. In my tsconfig.json I have "compilerOptions": { "module": "commonjs", "resolveJsonModule": true, "esModuleInterop": true } I have restarted vscode multiple times, and tried compiling from the vscode terminal, a powershell window, and a bash terminal, all returning the same message: "Consider using '--resolveJsonModule' to import module with '.json'

resolveJsonModule not functioning with Angular 10?

时间秒杀一切 提交于 2020-12-05 12:45:59
问题 I have a basic JSON file in my assets folder of a brand new Angular 10 project. Angular CLI: 10.0.1 Node: 14.5.0 OS: win32 x64 TSC version 3.9.5. In my tsconfig.json I have "compilerOptions": { "module": "commonjs", "resolveJsonModule": true, "esModuleInterop": true } I have restarted vscode multiple times, and tried compiling from the vscode terminal, a powershell window, and a bash terminal, all returning the same message: "Consider using '--resolveJsonModule' to import module with '.json'