angular-cli

angular web app - include library licenses

橙三吉。 提交于 2021-01-28 08:00:24
问题 I have an angular-cli with many libraries. To include the licenses for these I include all of the LICENSE and package.json files from node_modules in the build. "assets": [ { "glob": "**/package.json", "input": "../node_modules/", "output": "./licenses" }, { "glob": "**/LICENSE*", "input": "../node_modules/", "output": "./licenses" } ] However this adds ~4000 individual files to the output and adds time to the build and upload, and some of the libraries are build/development tools not used in

ZoneAwarePromise overwritten when adding Handsontable to Angular-CLI scripts

六眼飞鱼酱① 提交于 2021-01-28 07:06:29
问题 I'd like to add the Handsontable library to my Angular project. Using angular-cli, I added Handsontable to the scripts section of .angular-cli.json : "scripts": [ "../node_modules/handsontable-pro/dist/handsontable.full.js" ] Webpack compiles successfully, however when loading the web application, I'm encountering the following error: VM473:34309 Unhandled promise rejection Error: Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten. Most likely cause is

After upgrading to Angular8, AppEngine is serving scripts with the incorrect mime-type

一个人想着一个人 提交于 2021-01-28 01:41:18
问题 There seems to be a change if not a bug to how Angular8 packages up index.html that is breaking my deployment. The scripts at the bottom of the index.html in the dist folder no longer have type="text/javascript" <script src="runtime-es2015.b1e01c6054a9feffbeda.js" type="module"></script> <script src="polyfills-es2015.dd0ef0c762416a11ccfe.js" type="module"></script> <script src="runtime-es5.b1e01c6054a9feffbeda.js" nomodule></script><script src="polyfills-es5.ad2e20378bba1e661425.js" nomodule>

ng serve permission denied 127.0.0.1:4200

别说谁变了你拦得住时间么 提交于 2021-01-27 17:21:03
问题 When trying to ng serve a new angular project it return me an error [error] Error: listen EACCES: permission denied 127.0.0.1:4200 at Server.setupListenHandle [as _listen2] (net.js:1260:19) at listenInCluster (net.js:1325:12) at GetAddrInfoReqWrap.doListen [as callback] (net.js:1458:7) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:62:10) npm version : 6.4.1 angular cli version : 8.3.25 Node version : 10.15.2 What I've tryed Restart multiple times my computer I've tryed to find if the

ng serve --proxy-config with NTLM authentication is not working

你。 提交于 2021-01-27 07:43:32
问题 I'm trying to get angular cli's internal webserver (webpack uses node-http-proxy I think) to work with NTLM authentication and coming up short. I set up the webpack proxy like this: // in packages.json ... "scripts": { "start": "ng serve --proxy-config proxy.conf.json", ... The contents of proxy.config.json is: { "/srv": { "target": "http://localhost/access_form", "logLevel": "debug", "auth": "LOGIN:PASS" } } I'm trying to add a onProxyRes function to the JSON options object but this fails to

ng serve --proxy-config with NTLM authentication is not working

半腔热情 提交于 2021-01-27 07:39:51
问题 I'm trying to get angular cli's internal webserver (webpack uses node-http-proxy I think) to work with NTLM authentication and coming up short. I set up the webpack proxy like this: // in packages.json ... "scripts": { "start": "ng serve --proxy-config proxy.conf.json", ... The contents of proxy.config.json is: { "/srv": { "target": "http://localhost/access_form", "logLevel": "debug", "auth": "LOGIN:PASS" } } I'm trying to add a onProxyRes function to the JSON options object but this fails to

Hide IE warnings from console in Angular 6

冷暖自知 提交于 2021-01-27 06:06:16
问题 I am constantly getting these warnings when serving my angular app: e.g.: ./src/app/core/containers/navbar/navbar.component.sass (Emitted value instead of an instance of Error) autoprefixer: ...src\app\core\containers\navbar\navbar.component.sass:11:4: grid-auto-columns is not supported by IE Unfortunately, I am not interested in IE support. Is it possible to disable this type of warnings? 回答1: You can disable warnings for single lines in your CSS file by prepending the line with: /*

Hide IE warnings from console in Angular 6

风格不统一 提交于 2021-01-27 06:03:43
问题 I am constantly getting these warnings when serving my angular app: e.g.: ./src/app/core/containers/navbar/navbar.component.sass (Emitted value instead of an instance of Error) autoprefixer: ...src\app\core\containers\navbar\navbar.component.sass:11:4: grid-auto-columns is not supported by IE Unfortunately, I am not interested in IE support. Is it possible to disable this type of warnings? 回答1: You can disable warnings for single lines in your CSS file by prepending the line with: /*

Hide IE warnings from console in Angular 6

*爱你&永不变心* 提交于 2021-01-27 06:03:23
问题 I am constantly getting these warnings when serving my angular app: e.g.: ./src/app/core/containers/navbar/navbar.component.sass (Emitted value instead of an instance of Error) autoprefixer: ...src\app\core\containers\navbar\navbar.component.sass:11:4: grid-auto-columns is not supported by IE Unfortunately, I am not interested in IE support. Is it possible to disable this type of warnings? 回答1: You can disable warnings for single lines in your CSS file by prepending the line with: /*

Debug angular 2 typescript application in IE

本小妞迷上赌 提交于 2021-01-27 02:04:30
问题 I can easily debug my Angular 2 (from an Angular-CLI generated project) Typescript files in Chrome and Firefox but I am unable to debug any of my typescript file in IE 11. All files I can see in the list are of type .js Can anyone guide me on what I am doing wrong or how to debug the application in IE? 回答1: in IE 11 you need to open your .ts file in debugger it found under "Dynamic Scripts". scroll down to and locate your .ts file and open it in debug. 回答2: IE 11 wont handle the maps files