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

Export Angular project from StackBlitz to local

I would like to export an Angular project done in StackBlitz an execute it from Angular CLI with the command ng serveas we do with an Angular project created in our local machines.
Lorenzo Lerate
  • 3,552
  • 3
  • 26
  • 25
29
votes
1 answer

How to install npm packages on StackBlitz?

I just want to install npm packages for angular on StackBlitz. How can I do that since there is no terminal on StackBlitz?
x7R5fQ
  • 949
  • 2
  • 13
  • 27
27
votes
10 answers

How do I open a terminal in Stackblitz while working on an Angular project?

I know Stackblitz offers support for generating services and components from a couple of clicks. But I still need to work on terminal for my practice and add dependencies. Please don't answer that there are other better, methods than Terminal, that…
user5432838
21
votes
2 answers

StackBlitz ngcc failed to run on my npm library with Ivy enabled

I have published an Angular 10 library to npm and it works fine in a local Angular 10 project with Ivy enabled but if I try and use it on StackBlitz I have to disable Ivy. https://stackblitz.com/edit/angular-ivy-tapxx5?file=tsconfig.json but working…
Adrian Brand
  • 20,384
  • 4
  • 39
  • 60
17
votes
1 answer

How to use Angular CLI schematics in StackBlitz

I am using StackBlitz for testing and answering Angular related questions on Stackoverflow. I am manually creating Components, Services, Modules, etc. Is there a way to use Angular CLI in StackBlitz to speed up the process?
NeNaD
  • 18,172
  • 8
  • 47
  • 89
15
votes
3 answers

StackBlitz synchronization with github - upload to from StackBlitz to github

I have an angular project and I know it is possible to open a github project in StackBlitz, but what about the changes that were made on the StackBlitz project? Is it possible to commit to github without downloading the code to your PC?
Tito
  • 722
  • 4
  • 26
  • 55
13
votes
2 answers

Why does my project result in the "More than one component matched on this element." error?

I have the following project in a StackBlitz: https://stackblitz.com/github/nickhodges/PhillyCCTodoApp/tree/Step20 I get this error: Template parse errors: More than one component matched on this element. Make sure that only one component's selector…
Nick Hodges
  • 16,902
  • 11
  • 68
  • 130
12
votes
2 answers

Using several JS files in StackBlitz with a simple JS-project

In StackBlitz it's possible to add another JS file(s) (besides index.js) but it seems that only index.js is actually being loaded. All the functions defined in other JS files created in the same (root) folder are just undefined when I try to call…
Serg
  • 6,742
  • 4
  • 36
  • 54
11
votes
5 answers

Can't find package src in StackBlitz after installing dependencies

Well in StackBlitz says "Can't find package: src ". I've read the questions from here and I've been trying the next things: Can't find packages in stackblitz, even though it is present in npm website. How to install then? How to downgrade the…
Nacho
  • 301
  • 4
  • 12
11
votes
1 answer

Ag-grid in Angular does not refresh when RowData is changed

I have fully set up an ag-grid in Angular 6 which shows all of the rowData correctly when the page is started. However, when items are added to the rowData, the display of the ag-grid doesn't update. I have this situation set up in the following…
Luke LaValva
  • 324
  • 1
  • 3
  • 13
9
votes
2 answers

Stackblitz : how can i execute a test using Angular?

How can I execute a test scripts with Stackblitz using an Angular project? I see into the package.json a karma packages, so I am wondering if there is the possibily to test my…
Gelso77
  • 1,763
  • 6
  • 30
  • 47
8
votes
2 answers

Updating stackblitz Angular version to the latest

I updated this stackblitz https://stackblitz.com/edit/template-driven-form-demo-bnezpz?file=app/user-form/user-form.component.ts to the latest angular version by pressing the refresh button in the dependencies tab. The result is that it keeps asking…
GeForce RTX 4090
  • 3,091
  • 11
  • 32
  • 58
8
votes
3 answers

Stackblitz: onClick doesn't find my function

I have as basic onClick in a button that outputs an alert function test(){ alert('here'); } In StackBlitz this doesn't work -…
RRachel
  • 99
  • 6
7
votes
2 answers

Angular Material does not seem to work in StackBlitz

While trying to replicate another issue I am having, I tried to use StackBlitz to replicate. However Angular Material does not seem to work on StackBlitz.... any advice or ideas on what I might be doing…
7
votes
1 answer

Embedding Stackblitz Editor on Medium

I wrote this article and I'm attempting to embed the corresponding Stackblitz example. I click on share and select preview only and then paste the link into…
Ole
  • 41,793
  • 59
  • 191
  • 359
1
2 3
15 16