Error when adding new product
See original GitHub issueHi, I seem to have encountered a few issues, namely when I add a new product I get this error:
Here’s my schema, I’ve tried it with even just a few fields, I still get the same error when adding the product (even though the product gets added successfully…)
export const DBproductSchema = buildSchema<DBProduct>({
name: "Product",
properties: {
imageUrl: imageUrlDisplay,
name: {
title: "Name",
validation: { required: true },
dataType: "string"
},
searchableName:{
title: "Searchable name",
validation: {required: true},
dataType: "string"
},
typicalShelfLife:{
title: "Typical shelf life",
validation: { required: true },
dataType: "string"
},
typicallyStoredIn: {
title: "Typically stored in",
validation: { required: true },
dataType: "string",
config: {
enumValues: {
"Šaldytuve": "Šaldytuve",
"Šaldiklyje": "Šaldiklyje",
"Lentynoje": "Lentynoje",
"Rūsyje": "Rūsyje"
}
}
},
drinkable:{
title: "Drinkable",
validation: {required: false},
dataType: "boolean"
},
weighable:{
title: "Weighable",
validation: {required: false},
dataType: "boolean"
},
countable:{
title: "Countable",
validation: {required: false},
dataType: "boolean"
},
cantExpire:{
title: "Can't expire",
validation: {required: false},
dataType: "boolean"
},
category: {
title: "Category",
validation: { required: true },
dataType: "string",
config:{
enumValues: {
"-": "-",
"Pieno produktai": "Pieno produktai",
"Vaisiai": "Vaisiai",
"Daržovės": "Daržovės",
"Prieskoniai": "Prieskoniai",
}
}
},
},
});
What am i doing wrong?
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Server Error-Error Message When Adding New Products
I am trying to add new products to my store because I am a few days away from my launch. Everything was going...
Read more >Error That makes No sense when Adding a new product
I am adding them straight on the amazon seller site and not using the upload file because its only one item.
Read more >Issues Adding Product – Critical Error
I have installed woocommerce and when I try to add a product I get this message: There has been a critical error on...
Read more >Error when adding new product. please help!
I have installed the latest version and everything seemed fine, but when trying to add a new Product... this is what I get....
Read more >Error When Adding New Product - Microsoft Dynamics CRM ...
Error When Adding New Product ... I am thinking , business rule to automatically set the Default Unit and Unit Group on the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m able to reproduce the same exact issue, using react 18.1.0.
Seems to happen with the demo code included in quickstart
Hi guys, we will be working on making FireCMS 1.0 compatible with React 18. In the meantime, I could make it work reverting to previous dependencies:
package.json
:and
index.tsx
: