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

[Bug]: "medusa build" does not bundle plugin admin widgets #11656

Open
dwene opened this issue Feb 27, 2025 · 0 comments
Open

[Bug]: "medusa build" does not bundle plugin admin widgets #11656

dwene opened this issue Feb 27, 2025 · 0 comments

Comments

@dwene
Copy link
Contributor

dwene commented Feb 27, 2025

Package.json file

{
  "name": "medusa",
  "version": "0.0.1",
  "description": "A starter for Medusa projects.",
  "author": "Medusa (https://medusajs.com)",
  "license": "MIT",
  "keywords": [
    "sqlite",
    "postgres",
    "typescript",
    "ecommerce",
    "headless",
    "medusa"
  ],
  "scripts": {
    "compose": "docker compose up -d",
    "nukedb": "docker compose down -v && docker compose up -d",
    "build": "medusa build",
    "seed": "medusa exec ./src/scripts/seed.ts",
    "start": "medusa start",
    "dev": "medusa develop",
    "sync": "medusa db:sync-links",
    "migrate:prod": "medusa db:migrate",
    "start:prod": "medusa start",
    "seed:prod": "medusa exec ./src/scripts/seed.js && yarn add-user:prod",
    "add-user:prod": "medusa user --email [email protected] --password supersecret && medusa user --email [email protected] --password password",
    "migrate": "medusa db:migrate",
    "test:integration:http": "TEST_TYPE=integration:http NODE_OPTIONS=--experimental-vm-modules jest --silent=false --runInBand --forceExit",
    "test:integration:modules": "TEST_TYPE=integration:modules NODE_OPTIONS=--experimental-vm-modules jest --silent --runInBand --forceExit",
    "test:unit": "TEST_TYPE=unit NODE_OPTIONS=--experimental-vm-modules jest --silent --runInBand --forceExit",
    "medusa:init": "yarn run nukedb && medusa db:create --db medusa2 && yarn run migrate && yarn run sync && yarn run seed && yarn run add-user",
    "add-user": "medusa user --email [email protected] --password supersecret && medusa user --email [email protected] --password password",
    "typecheck": "tsc --noEmit"
  },
  "dependencies": {
    "@lambdacurry/medusa-product-reviews": "0.0.6",
    "@medusajs/admin-sdk": "2.5.1",
    "@medusajs/cli": "2.5.1",
    "@medusajs/framework": "2.5.1",
    "@medusajs/js-sdk": "2.5.1",
    "@medusajs/medusa": "2.5.1",
    "@medusajs/types": "2.5.1",
    "@mikro-orm/core": "6.4.3",
    "@mikro-orm/knex": "6.4.3",
    "@mikro-orm/migrations": "6.4.3",
    "@mikro-orm/postgresql": "6.4.3",
    "awilix": "^8.0.1",
    "medusa-variant-images": "^1.0.4",
    "pg": "^8.13.0"
  },
  "devDependencies": {
    "@medusajs/test-utils": "2.5.1",
    "@mikro-orm/cli": "6.4.3",
    "@mikro-orm/core": "6.4.3",
    "@mikro-orm/migrations": "6.4.3",
    "@mikro-orm/postgresql": "6.4.3",
    "@stdlib/number-float64-base-normalize": "0.0.8",
    "@swc/core": "1.5.7",
    "@swc/jest": "^0.2.36",
    "@types/express": "^4.17.13",
    "@types/jest": "^29.5.12",
    "@types/mime": "1.3.5",
    "@types/node": "^17.0.8",
    "@types/react": "^18.3.2",
    "jest": "^29.7.0",
    "prop-types": "^15.8.1",
    "ts-node": "^10.9.2",
    "typescript": "^5.7.3",
    "yalc": "^1.0.0-pre.53"
  },
  "installConfig": {
    "hoistingLimits": "workspaces"
  },
  "engines": {
    "node": ">=20"
  }
}

Node.js version

22

Database and its version

17

Operating system name and version

OSX

Browser name

No response

What happended?

When I run "medusa develop" I see my plugin widgets (ex: product reviews table on the products page).

But when I run "medusa build" my plugin's admin widgets do not get bundled into .medusa/server/public/assets. That only has default Medusa admin UI.

Expected behavior

"medusa build" should bundle my plugin's admin UI widgets.

Actual behavior

"medusa build" does not bundle my plugins admin UI widgets

Link to reproduction repo

https://github.com/lambda-curry/medusa2-starter

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

1 participant