-
Notifications
You must be signed in to change notification settings - Fork 929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support images & static assets #72
Comments
@wjhurley we're working on adding support for static assets 🙌 should ship later this month/early next! Till then I'd recommend using asset hosts like S3, etc (or sites like Imgur for images specifically) |
Hello guys, do you have any updates on the static resources and "assets"? |
Hi guys, any news? Please take a look at: |
Hey all- really sorry about our delay on this, we've been completely slammed fixing/upgrading countless things. Static asset support has also proven to be a more difficult challenge than we originally anticipated, particularly because all of this would be happening inside your browser (the stackblitz dev server lives within your browser's service worker) and ensuring reliability/stability+ backwards compatibility for older browsers isn't particularly straightforward. That said, the good news is that we've been slowly chipping away at this and have finally sorted the large technical challenges. Current ETA is 2-4 weeks, but we're also giving a talk at ng-conf at the end of April that might affect that window by a week or so. As we make progress on this I'll circle back here and update y'all. Thanks for being so patient & awesome! 🍻 |
@EricSimons any updates on this? anything I can do to help? |
please give updates |
Adding yet-another-voice to the static asset request. I have a demo that I would like to make available on StackBlitz, and it requires one file to request another using XMLHttpRequest. I was unable to get this working, and this issue explains why. Accessing the file via HTTP is related to #133. The fact that the demo is bread-and-butter HTML+CSS+JS means my particular issue is also related to #179 and #340. Thanks, and keep up the great work! |
If you only need several (small) images in your blitz, you can base64 them as a temporary workaround: |
@DenisVuyka no. It's a temporary workaround for if you have a bunch of (small) images you'd like to use, but I should have commented this in the related images only issue, I now see this was about assets in general. I've modified my comment accordingly |
@DenisVuyka I'm pretty sure that @michahell 's intent was to help you and he wasn't kidding at all. At the moment there is no support for static assets (yet!). So please be patient or find a workaround (uploading static files to github, dropbox or whatever and link them from there). Shouldn't be a big deal for a capable developer. |
Any ETA? Last one was 12 weeks ago if I am not wrong. I love stackblitz btw, great tool. Keep up the good work! |
Hi, Love StackBlitz. Any update on the static assets? Thanks. |
Hi, any workaround for this? |
Any idea when this feature can be expected? |
any update on this feature? |
@weilies this week has been a tough one on our end, I'm really sorry about my delay on responding to your email. I'm going to chunk some time out this weekend to investigate the issues you're running into. Btw, later this year we're rolling out a huge upgrade to SB that makes it truly a desktop-class IDE, which will solve a lot of the issues described here/bring parity with your local envs. Would love to have you beta test that if interested! |
@EricSimons how do I join the beta? |
count ME IN!!! @EricSimons LOVE U! |
Any update on this?? |
"later this year" ... aha ... year is almost over. Any updates on this? |
i guess we should still treat StackBlitz for hobby project. I have a crucial project so i moved to other platform for serious development. @EricSimons sorry. I still love StackBlitz for the quick adoption. For demo or testing, i still use SB. |
Stackblits is perfect except this one problem. It already can host static files but it does not provide the correct mime type for them. |
Sad face :( |
I've given up on StackBlitz and migrated to CodeSandbox, which I advise you to do as well. |
Hey everyone- I apologize for the delay on the update here. We actually shipped static asset support in 2020, so you can drag & drop to upload images and other binary files and they should upload 100% correctly. If you're seeing functionality otherwise please lmk. Additionally, our v2 version is (finally) on production behind a feature flag- this is the thing I mentioned in an earlier post that brings desktop grade editing to StackBlitz. It solves the issues regarding linking to uploaded binary files because it's running the entire Angular CLI/create-react-app/etc CLIs themselves instead of our custom in-browser bundler. If you'd be interested in trying out the alpha please email me at eric@stackblitz.com and I'll get the feature flag added to your account, our team would love to hear your feedback. ETA for general availability of this is late April or May 2021 (i.e. 30-60 days from now). @earshinov @haakon-io I'd love to understand what exact issues you ran into and if you'd be up for trying out v2 🤗 |
And actually, to shed some extra color on what the heck we've actually been up to and why it's taken so long for this to ship- you can take a look at the first public preview of our new v2 product on the AngularAir podcast from a few weeks back where I covered this in great detail. |
hi Eric let me share bit from my personal exp after many months of using StackBlitz. It's cool, pick and run to test on certain package. But i also noticed one thing, when there are packages required some other depencies, sometime it failed me. It stuck at the 'compiling screen' and sorry i couldn't have a project upgrade. I basically scrap the project and move on to CodeSandBox, which is much more easy to get the installation up and running. Some packages i experienced the compiling forever issue are like formio, primeNG, some calendar widget. i didn't capture every single failure of StackBlitz. My best development experience so far is via Google Cloud shell, but again it required you to arrange every folders, installation our own, lots of time we gotto read the compile/build errors. no choice. My development workflow now, |
@weilies thanks so much for posting this detailed writeup- this makes a ton of sense. I think the main reason you've run into issue with both StackBlitz and CodeSandbox is that both options currently 'emulate' the Angular CLI/create-react-app/etc instead of running the CLIs themselves. This leads to divergence in compatibility and unexpected issues (like this github issue, and many others on ours & Codesandbox's issue tracker). Our v2 product solves this problem by running the CLIs themselves, similar to how Google Cloud shell works- except StackBlitz v2 executes these up to 5x faster (more info here). Would you be interested in trying out the alpha? If so, please shoot me an email and I'll get you hooked up- eric@stackblitz.com ❤️ |
My product is LIVE and the forge is already root in Google. I can't afford to uproot and migrate to StackBliz. At least for coming few years. But i do happy to test for you, as i POC package before bring them into my development workspace. Will email u now |
@EricSimons - I was trying to use some HTML |
It's sad that static images are not supported. |
@EricSimons thanks for great StackBlitz |
i need exactly this too. sad that this issue is open since 2017. |
Would be really cool to have this working. Any official plans on that? |
@EricSimons thanks for great stackblitz. Still no update on static assets? what is an optimal alternative? |
It somewhat surprises me that such a basic thing still does not seem to work? Sad, stackblitz is a pretty cool idea :( |
It's still not working. It's pretty sad because it is a deal breaker. |
So you still cannot reference images uploaded in a Raact app? |
No |
Hey, just wonder how's t going with the feature update? its 2024 now |
Same |
7 years later... no assets support yet. No big deal, good luck guys! I think the feature is available only for premium users : https://angular-ivy-phwyr1.stackblitz.io/ I've run the same app and i'm getting this url (****)-12d46890.local-credentialless.webcontainer.io/assets/data.json (0;0) credentialless... |
The app assumes that file.png is actually a .js file and tries to import file.png.js, which it cannot find. Create-react-app allows for importing files other than .css and .js, but StackBlitz does not.
The text was updated successfully, but these errors were encountered: