medusa-plugin-strapi icon indicating copy to clipboard operation
medusa-plugin-strapi copied to clipboard

ApplicationError: The type is required

Open fendyk opened this issue 1 year ago • 6 comments

When running: npx create-strapi-app strapi-medusa --template shahednasser/strapi-medusa-template

I get:

ApplicationError: The type is required
    at getFieldSize (/Users/raulfernandez/IdeaProjects/strapi-medusa/node_modules/@strapi/plugin-content-manager/server/services/field-sizes.js:61:15)
    at getDefaultFieldSize (/Users/raulfernandez/IdeaProjects/strapi-medusa/node_modules/@strapi/plugin-content-manager/server/services/utils/configuration/layouts.js:27:10)
    at appendToEditLayout (/Users/raulfernandez/IdeaProjects/strapi-medusa/node_modules/@strapi/plugin-content-manager/server/services/utils/configuration/layouts.js:140:27)
    at createDefaultEditLayout (/Users/raulfernandez/IdeaProjects/strapi-medusa/node_modules/@strapi/plugin-content-manager/server/services/utils/configuration/layouts.js:50:10)
    at createDefaultLayouts (/Users/raulfernandez/IdeaProjects/strapi-medusa/node_modules/@strapi/plugin-content-manager/server/services/utils/configuration/layouts.js:34:11)
    at createDefaultConfiguration (/Users/raulfernandez/IdeaProjects/strapi-medusa/node_modules/@strapi/plugin-content-manager/server/services/utils/configuration/index.js:26:20)
    at async generateNewConfiguration (/Users/raulfernandez/IdeaProjects/strapi-medusa/node_modules/@strapi/plugin-content-manager/server/services/configuration.js:54:36)
    at async Promise.all (index 13)
    at async Object.syncConfigurations (/Users/raulfernandez/IdeaProjects/strapi-medusa/node_modules/@strapi/plugin-content-manager/server/services/configuration.js:68:5)
    at async Object.module.exports [as bootstrap] (/Users/raulfernandez/IdeaProjects/strapi-medusa/node_modules/@strapi/plugin-content-manager/server/bootstrap.js:13:3) {
  details: {}
}

fendyk avatar Sep 13 '23 12:09 fendyk

I had this issue as well, got around it by using the default app and copying the template files into it

samhenderson511 avatar Sep 17 '23 09:09 samhenderson511

I have the same issue, there is something wrong in initial configuration flow. @samhenderson511 can you explain better how you avoided the problem? what do you mean with "default app"?

earmellin avatar Sep 29 '23 16:09 earmellin

I actually couldn't get it to sync with Medusa in the end anyway but I installed the default strapi starter and then copied the template files across

samhenderson511 avatar Sep 29 '23 17:09 samhenderson511

@samhenderson511 but so if in the end it doesn't work I don't think it's worth installing it...

earmellin avatar Sep 29 '23 17:09 earmellin

The same problem. Maybe somebody in the issue have tried plugin for contentful cms? Does it work?

rsln-ua avatar Sep 29 '23 23:09 rsln-ua

I haven't tried it but you need to install a whole new starter project for it which I didn't want to do

samhenderson511 avatar Sep 30 '23 07:09 samhenderson511