Quantcast
Channel: User Justin - Stack Overflow
Browsing all 34 articles
Browse latest View live

Comment by Justin on Lazy loading broken on prod build Angular 8

@PranavRamachandran added that and the error persists

View Article



Comment by Justin on How to proxy API requests to another server?

Is there a way to add a single context that proxies all requests? It's annoying to have to add every single route that goes to the backend server.

View Article

Comment by Justin on After upgrading to Angular 8 testing with Jest broken

This was the issue. I don't know exactly what version of what package was the problem but after upgrading all packages and cleaning my node_modules and reinstalling everything worked after following...

View Article

Comment by Justin on How to redirect to an external URL in Angular2?

Do newer versions on Angular not allow just plain window?

View Article

Comment by Justin on Angular 2: Form submission canceled because the form is...

I think this answer is good in that you should be explicit in your forms as to which button is the submit button. It solves this issue of the wrong button being used for submission as well as allows...

View Article


Comment by Justin on Selenium automatically accepting alerts

In my use case, the default wait in isAlertPresent() does not work. When running our tests on a bogged down server it fails and hangs trying to find the alert. The custom wait allows for multiple tries...

View Article

Comment by Justin on Deploy Ionic app with AppFlow in a sub-directory?

So far I haven't found a solution other than ripping out the ionic directory and deploying it separately. Obviously this is not ideal...I had to also bring over the shared types and services. I've also...

View Article

Comment by Justin on Ionic Pro build fails, ionic deploy manifest failed

I wanted to add that anyone arriving here when trying to deploy an app using AppFlow: I was getting this error in the build pipeline because I also had www/ added to my .gitignore. removing it fixed...

View Article


Comment by Justin on What is the difference between isoWeek and week?

@ManishSundriyal Ahh I did not see that when I was googling, thank you!

View Article


Comment by Justin on Getting 403 ACCESS DENIED error when deploying React Web...

This solution is required when deploying a single page app. When requests come in for resources on the newly deployed server they need to be redirected to the root html file as that is where you...

View Article

Comment by Justin on Mock an API call that is several layers deep

@jonrsharpe I was a little confused by your comment, but I think what you're saying is that I should really be mocking the mapbox client. I updated the code snippet to better illustrate what is...

View Article

Comment by Justin on How to test webhooks / remote call backs?

Hmm, is xml the only supported file format for this? I have a json request or a yaml request but can't seem to use these files as fixtures in this way.

View Article

Answer by Justin for Angular 5 default Select Option not getting set

The best way I've found is as follows:<div class="form-group"><label for="state">State:</label><select class="form-control formField" id="state" required [(ngModel)]="user.state"...

View Article


How can I add segments to ActivatedRoute?

In angularJS, when using UI-Router, you were able to essentially name routes as each state had a name and you could navigate to that route.For example:$stateProvider.state("base", { url: "/",...

View Article

Answer by Justin for Webpack 4 is tree shaking away bootstrap, how can I...

After doing some more digging into this issue, I was getting similar issues with other imports, the root problem was that I was referencing third party libraries in more then one place. In other words,...

View Article


Answer by Justin for Angular material datepicker dateformat

That is seconds since the epoc, see here. I believe you are not using the moment constructor correctly. Try this:moment(this.date).format('YYYY-MM-DD').toString();Either that or the value you are...

View Article

Image may be NSFW.
Clik here to view.

How can I access the style property of last element in dynamic nested structure?

I am trying to style a custom dynamic nested "list" structure with borders but I am having trouble getting access to the last elements with sass.I am using angular to dynamically create the list but in...

View Article


Answer by Justin for Found the synthetic property @state. Please include...

I was also continually getting this error after importing BrowserAnimationsModule, and I had also added the animations: [] metadata to my component. I was still getting this error, but it turned out...

View Article

Can the Angular CLI create a work-space with multiple apps that share one or...

I am just about wrapping up a migration from angularJS 1.4 to Angular 7.1 and am currently playing around with the conversion of our custom Webpack builds to the CLI. We have about 10 separate angular...

View Article

AWS CLI upload failed: unknown encoding: idna

I am trying to push some files up to s3 with the AWS CLI and I am running into an error:upload failed: ... An HTTP Client raised and unhandled exception: unknown encoding: idnaI believe this is a...

View Article
Browsing all 34 articles
Browse latest View live




Latest Images