Giter VIP home page Giter VIP logo

Comments (13)

sradevski avatar sradevski commented on September 12, 2024 6

Thanks for the report, we'll have a look into it!

from medusa.

LRboyz avatar LRboyz commented on September 12, 2024 4

When will this problem be solved? It's urgent.🔥

from medusa.

Marwan-Dalaty avatar Marwan-Dalaty commented on September 12, 2024 1

Hi why we are not getting reply from Medusa team on this ticket?

from medusa.

sradevski avatar sradevski commented on September 12, 2024 1

Hey all, it hasn't been forgotten, it's just a matter of priorities. We'll tackle it as soon as the other, higher priority work, is done.

from medusa.

Marwan-Dalaty avatar Marwan-Dalaty commented on September 12, 2024

HI Same issue here, I'm able to open the category and browse the default item inside it http://localhost:9000/app/categories
but when I try to add a new category I'm getting the above error.

Screenshot from 2024-07-13 20-28-10

please advise

from medusa.

Deroswent avatar Deroswent commented on September 12, 2024

The same bug when you try to create category.

This bug is blocker, please take a look and fix it

from medusa.

Marwan-Dalaty avatar Marwan-Dalaty commented on September 12, 2024

@sradevski @shahednasser, Please check the above as it wasn't included in the new release and is a critical fix.
Also kindly note that if you change the category name, it doesn't reflect the new name in the storefront UI

from medusa.

HarleySalas avatar HarleySalas commented on September 12, 2024

Can we at least have some response as to why it hasn't been assigned? Did you guys forget about it? @sradevski @srindom

from medusa.

chasie avatar chasie commented on September 12, 2024

Hi all, this problem has already been solved by the community in the Discord channel (https://discord.gg/medusajs):

  1. Add vite-plugin-commonjs as dev dependency
  2. Add this in medusa-config.js
  admin: {
    // your code
    vite: () => ({
      plugins: [
        commonjs({
          filter: (id) => /node_modules\/react-nestable/.test(id),
        }),
      ],
    }),
  },

from medusa.

Deroswent avatar Deroswent commented on September 12, 2024

Hi all, this problem has already been solved by the community in the Discord channel (https://discord.gg/medusajs):

It doesn't work. Clear medusa preview installation + npm install -D vite-plugin-commonjs + change standard medusa-config.js = error when start medusa develop: ReferenceError: commonjs is not defined

medusa-config.js:

import { loadEnv, defineConfig } from '@medusajs/utils'

loadEnv(process.env.NODE_ENV, process.cwd())

module.exports = defineConfig({
  projectConfig: {
    databaseUrl: process.env.DATABASE_URL,
    http: {
      storeCors: process.env.STORE_CORS,
      adminCors: process.env.ADMIN_CORS,
      authCors: process.env.AUTH_CORS,
      jwtSecret: process.env.JWT_SECRET || "supersecret",
      cookieSecret: process.env.COOKIE_SECRET || "supersecret",
    }
  },
  admin: {
    vite: () => ({
      plugins: [
        commonjs({
          filter: (id) => /node_modules\/react-nestable/.test(id),
        }),
      ],
    }),
  },
});

from medusa.

chasie avatar chasie commented on September 12, 2024

Hi all, this problem has already been solved by the community in the Discord channel (https://discord.gg/medusajs):

It doesn't work. Clear medusa preview installation + npm install -D vite-plugin-commonjs + change standard medusa-config.js = error when start medusa develop: ReferenceError: commonjs is not defined

medusa-config.js:

import { loadEnv, defineConfig } from '@medusajs/utils'

loadEnv(process.env.NODE_ENV, process.cwd())

module.exports = defineConfig({
  projectConfig: {
    databaseUrl: process.env.DATABASE_URL,
    http: {
      storeCors: process.env.STORE_CORS,
      adminCors: process.env.ADMIN_CORS,
      authCors: process.env.AUTH_CORS,
      jwtSecret: process.env.JWT_SECRET || "supersecret",
      cookieSecret: process.env.COOKIE_SECRET || "supersecret",
    }
  },
  admin: {
    vite: () => ({
      plugins: [
        commonjs({
          filter: (id) => /node_modules\/react-nestable/.test(id),
        }),
      ],
    }),
  },
});

Pls add import: import commonjs from 'vite-plugin-commonjs'

from medusa.

Deroswent avatar Deroswent commented on September 12, 2024

Pls add import: import commonjs from 'vite-plugin-commonjs'

Thanks, after I added this - no more error when starting medusa develop, but I still receive error Error: Element type is invalid when try to edit ranking or create category.

So, unfortunately this solution doesn't work

from medusa.

olivermrbl avatar olivermrbl commented on September 12, 2024

We expect to land a fix today and publish a new release. Keep an eye out for our releases :)

from medusa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.