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
7
votes
2 answers

How to downgrade the dependencies for npm packages in StackBlitz?

I'm trying to create an app for demo propose on StackBlitz and must use Angular 5.2.x because my app is still using 5.2.x. I just can't downgrade from v6 to v5.2 when I try to install the dependencies. I actually need e.g. "@angular/common":…
k.vincent
  • 3,743
  • 8
  • 37
  • 74
7
votes
4 answers

Angular elements error . "Failed to construct 'HTMLElement ...'

I am trying out a very simple application on angular elements on stackblitz and I am getting the following issue. Error: Failed to construct 'HTMLElement': Please use the 'new' operator, this DOM object constructor cannot be called as a…
Malik
  • 3,520
  • 7
  • 29
  • 42
6
votes
1 answer

Angular Error in turbo_modules/@angular/core@13.0.3/fesm2015/core.mjs (16:undefined) Maximum call stack size exceeded

I keep getting the following error in my code ,I Looked at other posts like "maximum call stack size exceeded" but can't quite figure out, any guidance on how to fix this error? Error in turbo_modules/@angular/core@13.0.3/fesm2015/core.mjs…
Jeremyapple
  • 253
  • 2
  • 6
  • 20
6
votes
1 answer

Angular StackBlitz error: [NoSuchMethodError: method not found: 'write$1' on null]

I am trying to setup a Stackblitz project with Angular Material theming, following the official guide for Angular Material 11 theming. I created a sass file for the custom theme configuration theming.scss, but when I try to import it into the global…
Yassir Khaldi
  • 1,452
  • 1
  • 17
  • 30
6
votes
1 answer

Cannot find module 'rxjs' or its corresponding type declarations, after switching to rxjs 7

I'm facing this strange error after I have switched from rxjs 6.5 to rxjs 7. I'm not sure if it's a issue with the typings for rxjs 7 or if it's a issue with stackblitz (https://stackblitz.com/edit/rxjs-20-21-obs):
Marius
  • 3,253
  • 5
  • 25
  • 29
6
votes
0 answers

Is it possible to use cypress with stackblitz?

I have an angular project on stackblitz with jasmine, it works fine. I would like to use cypress instead of jasmine.. Is it possible to use cypress on stackblitz ?
Leasye
  • 261
  • 1
  • 8
  • 19
6
votes
1 answer

Send and Get data from code editor like Plunker/StackBlitz embedded

I have a website in .Net Core 2 and Angular 6. I am trying to create a code editor in angular or javaScript that will interact with part of the website, from parent to embeded direction, not the opposite and this code can be submitted to my server…
Tito
  • 722
  • 4
  • 26
  • 55
5
votes
3 answers

Where is the StackBlitz console?

At the end of the Angular's "Getting started/try it/using forms for user inputs", we are asked at the end to "open the console to see an object containing the name and address you submitted.". But I only have a terminal where the app is running, and…
Kokottc
  • 101
  • 1
  • 7
5
votes
1 answer

Why is the Angular Generator option on Stackblitz not available?

I forked this tutorial from angular.io site: https://angular.io/start One of the steps has you create a new component and so I right click the app folder but there is no "Angular Generator" option like it shows in the screen shot on their site. What…
slashbrackets
  • 196
  • 1
  • 9
5
votes
3 answers

Reading data.json with HttpClient on Stackblitz?

I have a tiny demo and it attempts to read app/data.json using the Angular HttpClient. const post$:Observable = > http.get('./data.json'); However the HttpClient reponse says: Failure during parsing ... Thoughts?
Ole
  • 41,793
  • 59
  • 191
  • 359
5
votes
0 answers

Stackblitz - adding options to angular generator?

Trying to run through the Hall of Heroes tutorial. Generating components, services, etc, all see fine when using the angular generator - select the type, enter the name. But when getting to creating the routing files, the command to be entered, if…
VBartilucci
  • 477
  • 6
  • 17
5
votes
1 answer

Using Object.values() in Stackblitz Angular Project

In this stackblitz project we can use Object.values(). I'm trying to use it in this Angular project and it throws: Property 'values' does not exist on type 'ObjectConstructor'. I know that in general typescript projects via have to say that it's…
Ole
  • 41,793
  • 59
  • 191
  • 359
4
votes
2 answers

Error when adding my npm module to imports

Any help in understanding why I'm getting this error below installing and then referencing npm Angular2-wizard in my Stackblitz. I have this Stackblitz and I installed angular2-wizard. After I installed it I referenced it in my test.module.ts file…
chuckd
  • 13,460
  • 29
  • 152
  • 331
4
votes
0 answers

preview of stackblitz static html project ends in ENOENT error

I try to share a static html template project I made. But the Problem is that I end up with this error: {"syscall":"","errno":2,"code":"ENOENT","path":"/var"} The problem occurs when I open the preview link to the project. But if the html project is…
4
votes
0 answers

How to send a message to StackBlitz VM from the parent window using Angular?

I would like to send a message every second from the main page to the embedded stackBlitz without reloading the main page. I have found a way by sending it by creating a json file as bellow. I am using Angular. sdk.embedGithubProject( …
Tito
  • 722
  • 4
  • 26
  • 55
1
2
3
15 16