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

Stackblitz makes HTTP requests to JSONPlaceholder but not to SWAPI

For some unknown reason, Stackblitz cannot handle requests to certain APIs. It has no problem getting data from sonplaceholder.typicode.com, but cannot get data from https://swapi.dev/api/planets/1/. When trying to fetch from SWAPI, it results in a…
CodyBugstein
  • 21,984
  • 61
  • 207
  • 363
0
votes
1 answer

Angular - Render Google chart on a different page

Basically, I have two components page1 and page2 and I would like to draw a google Gantt chart on the second page. However, when switching to page2 nothing is rendered. From what I understand you must load google chart inside the element of…
0
votes
1 answer

StackBlitz: add jasmine-tests to an application with routing

I'm trying to set up a StackBlitz with jasmine tests. I managed to add a simple test, the problem is that by doing that, I broke my routing. As soon as I click on one of the buttons, I get an error: Uncaught (in promise): Error: Cannot match any…
PLB
  • 881
  • 7
  • 20
0
votes
1 answer

Why am I getting Error: Timeout in my Jasmine unit test of http interceptor?

I am struggling with unit testing my interceptor since yesterday noon. After following several tutorial and SO answers, I have a code that so far looks the best. BUT, because of some reason I am getting an error: Error: Timeout - Async function did…
0
votes
1 answer

Stackblitz error loading binary file from project

I'm trying to load a "local" file in a stackblitz project and I'm getting the following error Error: ENOENT: No such file or directory., '/~/small.flb' from this code fs.readFile(__dirname + "/small.flb", function(err, data) { if (err) { …
joshp
  • 706
  • 5
  • 22
0
votes
1 answer

How do I use Svelte component lifecycle methods on StackBlitz?

How do I use component lifecycle methods and other Svelte functionality within a Svelte app created using StackBlitz (https://stackblitz.com/fork/svelte)? Usually I would just import this sort of thing as an ES import: import { onMount } from…
Will Taylor
  • 1,650
  • 9
  • 23
0
votes
1 answer

Firebase Deploy problems using Switch and react-router-dom

I have an App and I can not deploy to Firebase when I add this line to the code: The data is rendering perfectly if I see it on my editor online Stackblitz or localhost, but I…
0
votes
1 answer

Angular Error: "mat-form-field' is not a known element"

Im using stackblitz code editor and im trying to implement calendar in my app using angular materials but got this error. here's the link https://stackblitz.com/edit/angular-ivy-2ucboy?file=src/app/app.component.ts
frustrated-dev
  • 431
  • 6
  • 29
0
votes
1 answer

Unable to recognize @angular/material?

I'm using stackblitz to compile an Angular application and I also added @angular/material in the dependencies. I don't know why the compiler wont recognize the dependency I installed.
frustrated-dev
  • 431
  • 6
  • 29
0
votes
1 answer

How can I make the card component work with react-split-pane component?

Here is my code. My problem is, how can I use the card component to fill the first pane of the SplitPane without using h-100 class? It is because when I use h-100 class for the Card component, it spoils the layout when the users click on the input…
The KNVB
  • 3,588
  • 3
  • 29
  • 54
0
votes
2 answers

Problem with adding angular-fontawesome library on stackblitz

When I add a library, it shows me an error on stackblitz. Error in ~/src/main.ts ngcc failed to run on @fortawesome/angular-fontawesome@0.7.0. https://stackblitz.com/edit/angular-ivy-wz89c7 Am I the only one to have this problem?
Kaczor
  • 21
0
votes
1 answer

Can't deploy project on firebase hosting

I have a project on stackbitlz. I am using Angular 10 and Firebase to build my website. When I deploy my site to a firebase server, I encounter a malfunction: on stackbitlz my site displays correctly, but after deployment the main page does not…
Alevtina
  • 147
  • 11
0
votes
0 answers

Different behaviour between stackblitz and local project

Hello everyone thanks for your read. My project is on stackblitz : https://stackblitz.com/edit/ionic-angular-v5-m8xt8c?file=package.json Very simple, just a press button that increases button progress number. The problem is that I have the same…
0
votes
2 answers

Angular 2+ swtichMap doesn't work correctly

I have a button witch makes a request to the server. And i'm using the switchMap operator with subject for preventing multiple pending requests. //service public getPhotos(): Observable { return this.http.get(`url`) } //component …
0
votes
2 answers

Can't delete new or existing lines in StackBlitz

I wanted to try out React on StackBlitz. Unfortunately, I'm unable to delete any line of code. Am I the only one who can insert new lines of code, but can't delete any of them? I've tried logging in with GitHub, but did not solve the issue. Here's…
T. Jony
  • 61
  • 1
  • 9