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
4
votes
1 answer

Adding compiler options to a stackblitz project

I want to add a file tsconfig.json consisting of the following code, to a stackblitz sample here https://stackblitz.com/edit/angular-1tbbrn. please anyone did this anyone did this?? "compileOnSave": false, "compilerOptions": { "baseUrl":…
Jake
  • 2,493
  • 1
  • 7
  • 19
4
votes
0 answers

Recover code from stackblitz after refresh the page

I am using the stackblitz for POC work in angular and I forgot to fork and refresh the page so now I can see my last fork changes all my save changes gone, is there any way to get that code before refreshing the page which I have already…
Dhaval Patel
  • 7,471
  • 6
  • 37
  • 70
4
votes
2 answers

How do you load a JSON in a Stackblitz project?

I'm working in Stackblitz and one of my files is a JSON file with some data. I want to get this JSON data into my javascript file index.js. But how? When I try loading it with xhr, like this: function loadJSON(callback) { var xobj = new…
CodyBugstein
  • 21,984
  • 61
  • 207
  • 363
3
votes
2 answers

ngx-capture : Unable to capture inside the screen capture area

I'm Unable to capture inside the screen capture area. I want a defined section with images and content to be captured. How can we achieve this? Help! Visit:…
Sid Sss
  • 129
  • 2
  • 13
3
votes
0 answers

Is stackblitz's terminal using the host or external processing power?

In other words : is it some kind of containerization/ VM technology or it's just my computer doing the whole thing ? and where's the downloaded data stored ? Things I tried : Code here , uncomment and use node index.js to run 1- Checking system info…
Mossab
  • 818
  • 8
  • 13
3
votes
1 answer

React-icons error 'Cannot use import statement outside a module' in stackblitz

I'm trying to add icon in my social header, but I am getting this error: Cannot use import statement outside a module and here is code: import React from 'react'; import { BsLinkedin } from 'react-icons/bs'; const HeaderSocial = () => { return…
3
votes
0 answers

Stackblitz giving module warning with React and Typescript

For me, the React + TypeScript starter project gives me this warning and nothing I can think of makes it go away permanently. The first line of index.tsx is import React, { FC } from 'react'; Which draws the warning Module…
Michael Lorton
  • 43,060
  • 26
  • 103
  • 144
3
votes
2 answers

Stackblitz: Cannot use import statement outside a module

Using stackblitz even if I create simplest demo for this library I get this error: Cannot use import statement outside a module I found related question from here, but it doesn't help: I can't edit package.json because I think they suggest to…
user3257598
  • 161
  • 8
3
votes
1 answer

JSpdf@2.3.1 is not loading on stackblitz

i am working on a angular8+ project and older versions like (jspdf@1.4.1) working fine in stackblitz but latest versions are not working. stackblitz code if i click on install missing packages , am getting the following error unable to find worker…
sravan ganji
  • 4,774
  • 3
  • 25
  • 37
3
votes
0 answers

angular import path in stackblitz

I have some issues with importing components/services in stackblitz. Please look at the files sidebar.component.ts, layout.component.ts and layout.module.ts. I tried many forms, no success. Here is the stackblitz link:…
derstauner
  • 1,478
  • 2
  • 23
  • 44
3
votes
3 answers

Cant find Module error in Angular when following the steps from angular.io

This is my first Angular App which I am building from angular.io documentation. I have followed the same steps as they have mentioned and I see that when I generate new components they are not getting added to app.module so I tried added them and…
Tejaswi Pandava
  • 486
  • 5
  • 17
3
votes
0 answers

Stackblitz doesn't work with Angular project with internal library

My github project has an internal library dependency in its project/my-library subdirectory and Angular needs it compiled separately: ng build my-library before ng build However, when I point Stackblitz at my github project, it says it can't find…
jtalics
  • 83
  • 2
  • 6
3
votes
1 answer

Stackblitz development server is not working

Its been week, stackblitz dev server is not running on using angular material.I have tried opening server in same tab as well.
John dey
  • 99
  • 1
  • 8
3
votes
2 answers

Why I get this error (new Set(...)).slice is not a function?

I tried to run this code in any of the online code editors but I always get error (new Set(...)).slice is not a function Code: myarray = ['d','s', 'a']; chr_arr = [...new Set(myarray)]; why I get this error ?
zac
  • 4,495
  • 15
  • 62
  • 127
3
votes
1 answer

How to include javascript url dependencies in stackblitz?

I'm trying to run something similar to this example in stackblitz. The code (not mine, but similar to what i'm trying to achieve) runs in js fiddle where you can include dependencies as url's from github but does not work when trying the same in…
im-i0dum
  • 474
  • 1
  • 5
  • 13
1 2
3
15 16