Skip to content
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

Firefox: preview not working for the web-platform template (Static HTML/JS/CSS) #1679

Closed
jzabinski-dolios opened this issue Dec 1, 2021 · 2 comments
Assignees

Comments

@jzabinski-dolios
Copy link

Description of Bug

In Firefox only, live demo always shows the error "ENOENT: No such file or directory., '/~'".

Steps to Reproduce

  1. Open Firefox 94.
  2. Navigate to https://stackblitz.com/edit/web-platform-spkpq6.

Expected Behavior

Live demo should compile and run successfully.

Additional Context/Questions
Chrome and Safari compile and run successfully. Firefox can also open other project types (Angular, RXJS) almost all the time. (It randomly fails, but a refresh clears up the problem.) The problem seems to be limited to Web Platform projects.

@fvsch
Copy link
Contributor

fvsch commented May 31, 2022

Thanks for the report @jzabinski-dolios. This is related to an intervention shipped by Firefox to handle a different issue on StackBlitz, which is unfortunately breaking all projects that use the web-platform template. We're looking into whether we can get this intervention removed (since we shipped some relevant fixes on stackblitz.com).

@fvsch fvsch changed the title Firefox 94.0.2: live demo not working Firefox 94.0.2: preview not working for the web-platform template (Static HTML/JS/CSS) Jun 1, 2022
@fvsch fvsch changed the title Firefox 94.0.2: preview not working for the web-platform template (Static HTML/JS/CSS) Firefox: preview not working for the web-platform template (Static HTML/JS/CSS) Jun 1, 2022
@fvsch
Copy link
Contributor

fvsch commented Apr 11, 2023

Hey everyone.

The HTML/CSS/JavaScript templates should work in Firefox again (as of late 2022):

  • We shipped some fixes that made the Firefox shim removing Service Worker functionality on stackblitz.com unnecessary.
  • The shim was removed from Firefox.
  • HTML/CSS/JavaScript projects now work in Firefox when Service Workers are not blocked by specific user configuration (like “Enhanced Tracking Protection” set to “Custom” and to block all third-party cookies) or browsing mode (Private browsing tends to block Service Workers).

If you still have issues with Firefox for HTML/CSS projects, and/or if you have issues with Firefox and Node projects on StackBlitz, please check this documentation page:
https://developer.stackblitz.com/platform/webcontainers/browser-config#firefox-service-workers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants