medusajs / medusa

The world's most flexible commerce platform.
https://medusajs.com
MIT License
25.87k stars 2.59k forks source link

[BUG] Admin Panel is not automatically opened in new tab in Firefox-based browsers #7987

Open SalahAdDin opened 4 months ago

SalahAdDin commented 4 months ago

Bug report

Describe the bug

After initializing a project in Linux with Firefox as my default browser, it didn't open a new tab with the admin panel.

System information

Medusa version (including plugins): preview Node.js version: v20.12.2 Database: PostgreSQL Operating system: Manjaro Linux x86_64 Browser (if relevant): Firefox, Brave

Steps to reproduce the behavior

  1. Open a shell
  2. Run the initializing command: pnpm dlx create-medusa-app@preview
  3. Fill all required parameters
  4. Wait for the project to be initialized.
  5. Check there is no Administration Panel tab in your browser

Expected behavior

It should open a new tab for the Administration Panel with the form for giving a password to the admin user as it states here.

Screenshots

image

    ~/Projects/experiments/ecommerce  pnpm dlx medusa user -e some@email.com -p admin                                               ERR_PNPM_DLX_NO_BIN  No binaries found in medusa
    ~/Projects/experiments/ecommerce  pnpx medusa user -e some@email.com -p admin
 ERR_PNPM_DLX_NO_BIN  No binaries found in medusa
    ~/Projects/experiments/ecommerce  npx medusa user -e some@email.com -p admin
npm ERR! could not determine executable to run

npm ERR! A complete log of this run can be found in: /home/luisalaguna/.npm/_logs/2024-07-05T01_52_16_964Z-debug-0.log
    ~/Projects/experiments/ecommerce  cd ecommerce                     
    ~/Projects/experiments/ecommerce/ecommerce  npx medusa user -e some@email.com -p admin
[medusa-config] ⚠ redisUrl not found. A fake redis instance will be used.
warn:    Local Event Bus installed. This is not recommended for production.
info:    Processing user.user.created which has 0 subscribers

Code snippets

Additional context

██████████████████  ████████   luisalaguna@luis-rogstrixg713qrg713qr 
██████████████████  ████████   ------------------------------------- 
██████████████████  ████████   OS: Manjaro Linux x86_64 
██████████████████  ████████   Host: ROG Strix G713QR_G713QR 1.0 
████████                                         ████████   Kernel: 6.6.34-1-MANJARO 
████████  ████████  ████████   Uptime: 12 hours, 56 mins 
████████  ████████  ████████   Packages: 1662 (pacman) 
████████  ████████  ████████   Shell: bash 5.2.26 
████████  ████████  ████████   Resolution: 1920x1080 
████████  ████████  ████████   DE: Plasma 6.0.5 
████████  ████████  ████████   WM: kwin 
████████  ████████  ████████   Theme: [Plasma], Colloid-Light [GTK2/3] 
████████  ████████  ████████   Icons: [Plasma], WhiteSur [GTK2/3] 
████████  ████████  ████████   Terminal: konsole 
                               CPU: AMD Ryzen 9 5900HX with Radeon Graphics (16) @ 4.890GHz 
                               GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Series 
                               GPU: NVIDIA GeForce RTX 3070 Mobile / Max-Q 
                               Memory: 11733MiB / 31512MiB 

We had to use npx medusa user -e some@email.com -p admin to create an admin user.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 3 days.

SalahAdDin commented 1 month ago

We guess it is related to the non existing open browser option for the admin:

    resolve: "@medusajs/admin",
    /** @type {import('@medusajs/admin').PluginOptions} */
    options: {
      autoRebuild: true,
      develop: {
        open: process.env.OPEN_BROWSER !== "false",
      },
    },
  },

Will it be implemented in the future?

SalahAdDin commented 1 month ago

UPDATE: I checked on medusa 1.20.9 with admin 7.1.16, and it seems it is unable to open Firefox-based browsers.

github-actions[bot] commented 6 days ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 3 days.

SalahAdDin commented 5 days ago

It is still happening in the official release version.