phcode-dev / phoenix

Phoenix is a modern open-source Code Editor for the web, built for the browser.
https://phcode.io
GNU Affero General Public License v3.0
1.69k stars 117 forks source link

Bug: extension installation fails on Firefox #973

Open mathewdennis1 opened 1 year ago

mathewdennis1 commented 1 year ago

Describe the bug

extensions cannot be installed in Firefox from the extension store. ezgif com-gif-maker

Reproduction

  1. go to extension store
  2. click on install button next to any extension
  3. see installation fails

Expected behavior

extension get installed.

OS, Browser and Phoenix versions

Ubuntu 22.04

logs or debug stack trace if any

No response

Additional context

No response

abose commented 1 year ago

What is the Firefox version. Also, can you add the errors in developmer console in Firefox

mathewdennis1 commented 1 year ago

Screenshot from 2023-02-08 16-37-20

Caught Critical error, Reported: Object { apiKey: undefined, context: "unsupported-desktop-linux-firefox", groupingHash: undefined, originalError: TypeError, _handledState: {…}, severity: "error", unhandled: true, app: {…}, device: {…}, request: {…}, … } loggerSetup.js:197:20 Uncaught (in promise) TypeError: ServiceWorker script at https://phcode.dev/virtual-server-main.js?debug=false&route=phoenix/vfs for scope https://phcode.dev/ threw an exception during script evaluation. XHRGEThttps://phcode.dev/phoenix/vfs/fs/app/extensions/user/rain.monokai-dark-soda/package.json [HTTP/2 404 Not Found 439ms]

XHRGEThttps://phcode.dev/phoenix/vfs/fs/app/extensions/user/rain.monokai-dark-soda/requirejs-config.json [HTTP/2 404 Not Found 363ms]

GEThttps://phcode.dev/phoenix/vfs/fs/app/extensions/user/rain.monokai-dark-soda/main.js [HTTP/2 404 Not Found 367ms]

[Extension] failed to load https://phcode.dev/phoenix/vfs/fs/app/extensions/user/rain.monokai-dark-soda - Module does not exist: https://phcode.dev/phoenix/vfs/fs/app/extensions/user/rain.monokai-dark-soda/main.js ExtensionLoader.js:285:20 XHRGEThttps://phcode.dev/phoenix/vfs/fs/app/extensions/user/rain.monokai-dark-soda/package.json [HTTP/2 404 Not Found 137ms]

Caught Critical error, Reported:
Object { apiKey: undefined, context: "unsupported-desktop-linux-firefox", groupingHash: undefined, originalError: String, _handledState: {…}, severity: "warning", unhandled: false, app: {…}, device: {…}, request: {…}, … }