Closed akoenig closed 1 month ago
Thanks for the report, we'll have a look into it!
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.
please advise
When will this problem be solved? It's urgent.🔥
The same bug when you try to create category.
This bug is blocker, please take a look and fix it
@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
Hi why we are not getting reply from Medusa team on this ticket?
Can we at least have some response as to why it hasn't been assigned? Did you guys forget about it? @sradevski @srindom
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.
Hi all, this problem has already been solved by the community in the Discord channel (https://discord.gg/medusajs):
vite-plugin-commonjs
as dev dependencyadmin: {
// your code
vite: () => ({
plugins: [
commonjs({
filter: (id) => /node_modules\/react-nestable/.test(id),
}),
],
}),
},
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),
}),
],
}),
},
});
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'
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
We expect to land a fix today and publish a new release. Keep an eye out for our releases :)
Bug report
Describe the bug
When navigating to http://localhost:9000/app/categories/organize (on a fresh app, bootstrapped via
create-medusa-app@preview
), the following error occurs:System information
Medusa version (including plugins): 2.0.1-preview Node.js version: v22.2.0 Database: Postgres 12 Operating system: - Browser (if relevant): -
Steps to reproduce the behavior
Expected behavior
The UI for organizing the categories should appear.
Screenshots
Code snippets
n/a
Additional context
n/a