console.js:35 ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'call' of undefined
TypeError: Cannot read property 'call' of undefined
at c (bootstrap:84)
at Object.QG+b (profile-loader.component.ts:1)
at c (bootstrap:84)
at Object.tEXq (client-info-new.component.ts:1)
at c (bootstrap:84)
at Module.MvbW (21-es2015.a1ffc6cdf9d231ebb058.js:1)
at c (bootstrap:84)
at l.invoke (chat-widget.js:1)
at Object.onInvoke (core.js:28510)
at l.invoke (chat-widget.js:1)
at a.run (chat-widget.js:1)
at chat-widget.js:1
at l.invokeTask (chat-widget.js:1)
at Object.onInvokeTask (core.js:28497)
at l.invokeTask (chat-widget.js:1)
at a.runTask (chat-widget.js:1)
at _ (chat-widget.js:1)
at C (chat-widget.js:1)
at C (chat-widget.js:1)
at chat-widget.js:1
at l.invokeTask (chat-widget.js:1)
at Object.onInvokeTask (core.js:28497)
at l.invokeTask (chat-widget.js:1)
at a.runTask (chat-widget.js:1)
at _ (chat-widget.js:1)
fileReplacements in the configuration no longer work (I have seen the issues on github). The files are in a config folder in assets and this gets copied over, is there a way that i could replace config.json with config.mockserver.json when running ng serve
<video #movieplayer ...></video>
I am having awful trouble using angular ssr with universal, I keep running into ReferenceError: Document is not defined when I am in my code base using:
import { DOCUMENT } from '@angular/common';
...
@Inject(DOCUMENT) private document: Document,
...And also using domino to mock document in my server,ts:
...
global['window'] = win;
global['document'] = win.document;
global['branch'] = null;
global['object'] = win.object;
global['HTMLElement'] = win.HTMLElement;
global['navigator'] = win.navigator;
global['localStorage'] = localStorage;
export function app() {
...
/home/luke/nodejs/ng-app/app-frontend/dist/server/main.js:218533
Document])
Hi,
could explain me how I can seperate an angular library with namespaces? I created a sample github repo: https://github.com/Norby125/LibExportTest2/blob/master/projects/my-lib/src/public-api.ts
As you can see in the public-api, I'm trying to split up the library's controls with namespaces. I tried those two:
If somebody could help me out, I would really appreciate it, either modifing the code, or, showing a relevant resource.
Purpose: I'd like to create a control library, where all the controls would be separated via namespaces
Hi, I'm building a library with angular 8 version and I have this error
An unhandled exception occurred: Cannot find module '@angular/compiler-cli/src/ngtsc/typecheck/api'
hi when I run ng new hello-ng-two I get:
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: hello-ng-two@0.0.0
npm ERR! Found: jasmine-core@3.6.0
npm ERR! node_modules/jasmine-core
npm ERR! dev jasmine-core@"~3.6.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer jasmine-core@">=3.7.1" from karma-jasmine-html-reporter@1.6.0
npm ERR! node_modules/karma-jasmine-html-reporter
npm ERR! dev karma-jasmine-html-reporter@"^1.5.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/myuser/.npm/eresolve-report.txt for a full report.Does anybody know whats going on here and what the fix is?
/custom-path/ and I have problem with sockjs-node. Angular app is trying to get info from localhost/sockjs-node/info. It should take this info from localhost/custom-path/sockjs-node/info. How should I configure serve script to make this work? I've tried to set publicHost in angular.json but it is not working for me. Do you know if there are any problems with this param? The problem started to occur after update project from Angular 9 to 12.
We are using angular 11 for application development.
Can we use the --vendor-chunk true for production build?.
Are there any problems?
"Generate a seperate bundle containing only vendor libraries. This option should only used for development."
--deploy-url next angular version(v13) since it is marked as deprecated? angular/angular-cli#21537
I want to set up themes in an Angular Project,
so I will have a configuration/module file that will decide which components need to be pick for that theme
Suppose
I have a theme 11 and a theme 12
theme 11 is using menu-v1, cart-v2, checkout-v3
theme 12 is using menu-v2 cart-v3, checkout-v1
so, can I lazy load that theme bundle on the basis of theme ID,
Hello
I have an issue since upgrading to angular 12. The index.html generated by ng build is broken. We have a custom <script> tag in our source index.html:
from src:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Wysiwyg</title>
<base href="/" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
<script>
function docReady(fn) {
...
}
</script>
</head>
<body class="bootstrap_theme" id="intranet">
...
</body>
</html>When we serve or build the project, the resulting index.html is broken:
from dist:
...
<script>
}
...Has someone met this issue? Can someone please help?