Questions tagged [stackblitz]

StackBlitz is an online IDE powered by Visual Studio Code, used for creating web applications. It provides rich editing and sharing features, like CodePen or JSFiddle. Use this tag when you have a question about one of its features or when you are encountering a problem in conjunction with using this tool for programming.

StackBlitz is an online IDE for web applications, powered by Visual Studio Code. It provides rich editing and sharing features, like CodePen or JSFiddle.

StackBlitz

236 questions
0
votes
1 answer

unknown error when making a http request to open weather api

i making a http call in my stckblitz project http://api.openweathermap.org/data/2.5/weather?q=' + data.city + '&appid=' + this.APIKey but it always gives an error Http failure response for…
conrad
  • 51
  • 8
0
votes
0 answers

Not able to iterate a Javascript Set in stackblitz?

I'm trying to iterate a Javascript Set in Stackblitz: https://stackblitz.com/edit/javascript-set-iterate?file=index.js for (const n of s) { array.push(n); console.log(n); } However the for loop has never been entered somehow. When I opened the…
Krist Jin
  • 61
  • 7
0
votes
1 answer

Unable to load language.json and css files in Firebase hosting

I have my app developed in StackBlitz, and incldued with ngx-translate package. It is working perfectly until it deployed to firebase.... basically everything broken (sobbing...) I tried my best to detail out my configs and the error log as i…
Weilies
  • 500
  • 1
  • 7
  • 27
0
votes
0 answers

warnings and errors on google chrome in angular stackblitz project

I get errors and warnings when I load the web page related to an angular project on stackblitz. These errors happen in google chrome, everything works fine in firefox! warnings The FetchEvent for "https://2.38.65.136:5001/getBrands" resulted in a…
CaneRandagio
  • 366
  • 2
  • 15
0
votes
1 answer

Prevent project recompiling on every keypress

Is there a way to set up a https://stackblitz.com project so it is not compiled automatically on every key press ?
armadillo.mx
  • 934
  • 1
  • 11
  • 17
0
votes
1 answer

Calling a method by injection (from component to component) in Angular is not binding {{}}

I have created a project in stackblitz to easily see what is happening. I am calling a method from one component using a button in another component. It executes the method but for some reason is not bidding the…
catra
  • 178
  • 2
  • 11
0
votes
3 answers

ReactJS not updating the state

Hello for some reason React would not update the state globally, componentDidMount() { var id = window.location.href.split('/')[3] var xhr = new XMLHttpRequest(); xhr.open("GET", "https://reactAppBackend/edit/" + id); xhr.send(); …
n2kin
  • 3
  • 3
0
votes
1 answer

Running project downloaded from stackblitz

I have downloaded a running project from stackblitz (https://stackblitz.com/edit/angular-dynamic-form-builder) of dynamic form builder. I am using angular 9, and unable to run it on local machine after installing dependencies(using npm install). it…
Shyam Narayan
  • 1,009
  • 2
  • 14
  • 28
0
votes
1 answer

Mapbox is not displaying in Stackblitz but it is displaying in local machine

The following is the error when I run my Angular Application which contains a mapbox in it. It does not display the map in stackblitz whereas it does, when run in the local machine. I have added the access token in mapbox. Has anyone else faced this…
0
votes
2 answers

Connection to Service in Stackblitz dont work

Goal: Make a connection with service named Data in stackblitz. Problem: It doesn't work. what part am I missing? Stackblitz: https://stackblitz.com/edit/angular-mpy6pr Thank you!
HelloWorld1
  • 13,688
  • 28
  • 82
  • 145
0
votes
2 answers

Import Error on Stackblitz when trying to add component to module file

I'm using Stackblitz to practice angularJS and it's coming up with an error when I attempt to import a component in the app.module.ts file. Import error, can't find file: ./heroes/heroes.component app.module.ts import { NgModule } from…
Blank
  • 155
  • 4
  • 16
0
votes
1 answer

Does not render component

I have created AngularJS simple project using stackblitz, i am unable to add module name. i have tried multiple times, as a new bee bit confused. here is a link for my project error. https://angularjs-nbhgkj.stackblitz.io full…
John dey
  • 99
  • 1
  • 8
0
votes
1 answer

How do I display the values of a 2d array in angular 2+ in the template file for a yearly calendar?

I'm trying to build a yearly calendar. Now I could have 12 month parents and all the children and that would do the trick, but I would rather cut down on html. I have a variable called yearlyCalendarArr which is the 2d array of months with the…
Travis
  • 1,674
  • 1
  • 9
  • 14
0
votes
1 answer

How to clear timers/intervals in Stackblitz (Angular)

When developing an app with a timer in Stackblitz, the interval is not cleared between runs. As in, in the Stackblitz project settings, I specified to reload on saves. But when the app reloads, the old intervals are all still active. In the…
SvG
  • 39
  • 6
0
votes
1 answer

Snackbar fills whole screen on deploy

The overly large snackbar only happens on the deployment version, I can't figure out what is causing it. But i'm hoping someone could help know what changes can be made in the stackblitz project in order for the bug not to show up on deploy. Or is…
Trevor
  • 16,080
  • 9
  • 52
  • 83