Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Eric
@sliceofbytes
Are you using cmd prompt or git bash?
bradws
@bradws
i always use git bash for angular dev
Eric
@sliceofbytes
Try creating app in cmd prompt (non git bash) just to isolate the issue
might be an env variable in git bash that is causing the conflict
Also if you haven't tried cmder I highly recommend it for windows
bradws
@bradws
ok (yes, you did actually say 'cmd prompt' above i didn't realise, sorry!)
I will install and use cmder
Eric
@sliceofbytes
Ya, includes powershell, cmd prompt, bash shell, git etc.. in a portable install, pretty awesome for windows
You can get the latest dev build from here, https://ci.appveyor.com/project/MartiUK/cmder/branch/master/artifacts
bradws
@bradws
ok, I'll install that build now. Once installed, I'll try and create a test project.
Eric
@sliceofbytes
Ya, I have a feeling it's just git bash, but not sure exactly where to look to fix it
I don't use git bash outside of cmder
bradws
@bradws
I'm happy to use cmder - it sounds like it's something i should be using. I've only used the Windows Bash Shell cause thats what we use at work. I play with Angular at home using the Bash Shell and Bonobo git server
bradws
@bradws
@sliceofbytes thanks for your help.... cmder is up and running.. and so is Angular now.
Eric
@sliceofbytes
Great!
bradws
@bradws
thanks again mate
Eric
@sliceofbytes
no problem
Radoš MIjatović
@rados.mijatovic_gitlab
HI :)
this is only for angular-cli or?
bradws
@bradws
Only for the CLI, but if yr not sure someone may direct you to the right channel
bradws
@bradws
when creating a new component, angular defaults the prefix to be 'app'. For example <app-mycomponent>. I was just wanting to know the rational behind this.
nuno-mrks
@nuno-mrks
I'm starting to develop and building my own libraries and at first, everything seems to be fine. But I'm facing a problem when I'm using them on a test application from the same workspace where these libraries are: the first time I serve the test application everything works as expected, but when I live-reload it (not the dist builds of the libraries), the libraries stop working.
For example, one of my libraries has a pipe called 'repeater'. I import the module where this pipe is placed on my test app, serve the test application and it works fine. If I change something on the test app, after the live-reload, I get a console error The pipe 'repeater' could not be found!.
Is this expected? What am I doing wrong?
nuno-mrks
@nuno-mrks
Minor update regarding my question: this scenario is only happening when enableIvy: true (from angularCompilerOptions property on tsconfig.app.json file). If enableIvy: falsethis is not an issue.
Derek
@derekkite
@nuno-mrks happens all the time with me. are you on the latest angular and cli versions, next.x?
stanislasdrg
@stanislasdrg
Hello everybody, I am wondering something about PathLocationStrategy. I remember using it from the start in my angular application. However, I don't remember configuring a default route in my server. Do you know if ng serve (webpack dev server) handles it automatically ?
I am talking about redirecting to index.html when a route is not found.
Derek
@derekkite
@stanislasdrg ng serve would do that, but you have to configure your server https://angular.io/guide/deployment#routed-apps-must-fallback-to-indexhtml
stanislasdrg
@stanislasdrg
@derekkite Thanks for the heads up. I had missed the nginx configuration line.
nuno-mrks
@nuno-mrks
@derekkite I'm on Angular 8.2.8, and CLI 8.3.6. I don't intend to move to 9.0.0.next; I'd like to wait for it to be production-ready.
But, by any chance, does this still happens on 9.0.0.next versions?
Derek
@derekkite
@nuno-mrks I just updated to next.9. It seems a bit better but haven't worked with it enough to be certain. next.8 still did the same thing.
Derek
@derekkite
@nuno-mrks next.9 is much better. Not perfect yet but it builds and runs properly if I edit a module or a template.
Rashid
@rashnk

Hello friends,
Angular 8 cli build adds 'defer' in the script tag in index.html , how to avoid that or how to make it defer="true"

<script src="runtime.192223dc779954f4d2f2.js" defer>

I want this to be
<script src="runtime.192223dc779954f4d2f2.js" defer="true">

David Jencks
@djencks_gitlab
I'm trying to extend the schematics node-package task and can't find out how to build @angular_devkit/schematics/tasks locally in a way that I can install it locally. Are there instructions somewhere? Could anyone provide a hint?
mohanrao
@mohanrao
i have an app on angular 6.x trying to update to angular 7 then to 8. But when i try to run ng update @angular/cli @angular/core . It is updating to 8 directly instead to 7
to
Vladimir Georgiev
@vladimirgeorgiev
Hi guys!
when deploying an angular 7 cli app to prod
the index.html generated references src="runtime.js" but the files on the server are in dist/runtime.js
I have set the base href to <base href="/">
Dave Bush
@DaveMBush
@vladimirgeorgiev your index.html should also be in the dist directory. That SHOULD be the root of your web server, whatever that happens to be.
So... http:/blah.com/ would point to whatever is in your dist directory. That directory is just a location in your development environment, you would copy that off to your production server where ever it needs it to be.
nitinknolder
@nitinknolder
@xavidram Thanks for replying but that is not my case. my case is different as when i was scrolling the page after editing the details and after saving that i scroll my page and this error appear.
magnattic
@magnattic
Did anyone manage to get Universal to run with Angular 9?
Tony Xavier
@vinzandtonz
I updated to Angular 8 and then when i run ng test —code-coverage i have 5 unit tests failing but if run ng test without the —code-coverage all tests are passing . What could be the issue ,any help would be great . Thanks
Hitenderapptec24
@Hitenderapptec24
Hello folks
I am gettting this error
ERROR in ./src/application/app/account-settings/components/account-settings.component.css.shim.ngstyle.js Module build failed (from ./node_modules/@ngtools/webpack/src/index.js): Error: ENOENT: no such file or directory, open '/var/www/letemlive/client/src/application/app/account-settings/components/account-settings.component.css.shim.ngstyle.js'
JuanCarlosJr97
@juancarlosjr97
Hello, I have a problem with cache limitation for my offline web app? How can I increase my cache limitatios on any device????
Derek
@derekkite
@Hitenderapptec24 does that come when you are running ng serve and you edit or change the files? Restart the serve if that is the case.
ZBAGI
@ZBAGI
Is there a way to use pre-build components from diffrent app ? Like plugin for angular app