medusa icon indicating copy to clipboard operation
medusa copied to clipboard

Strapi template error: ApplicationError: The type is required

Open fendyk opened this issue 1 year ago • 5 comments

Bug report

Describe the bug

When following the Quick start for Strapi (https://docs.medusajs.com/plugins/cms/strapi), installing the packages and running on develop I get the following message:

> [email protected] develop
> strapi develop

Building your admin UI with development configuration...
Admin UI built successfully
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: {}
}

System information

Medusa version (including plugins): Node.js version: 16.20.2 Database: sqlite Operating system: MacOS Browser (if relevant):

Steps to reproduce the behavior

  1. Go to 'https://docs.medusajs.com/plugins/cms/strapi'
  2. Run the command npx create-strapi-app strapi-medusa --template shahednasser/strapi-medusa-template
  3. Wait for it to finish and start
  4. See error

Expected behavior

Should start the develop server

Screenshots

None

Code snippets

None

Additional context

None

fendyk avatar Sep 13 '23 09:09 fendyk

I am also getting this error now, did you ever find a fix?

Bfunk54 avatar Nov 22 '23 15:11 Bfunk54

I am also getting this error now, did you ever find a fix?

Nope, still an issue.

fendyk avatar Nov 22 '23 15:11 fendyk

I am also getting this error now, did you ever find a fix?

Nope, still an issue.

Dang, so Strapi just doesn't work with medusa for now from what you can tell?

Bfunk54 avatar Nov 22 '23 16:11 Bfunk54

Use my mono repo SGFGOV/medusa-strapi-repo

On Wed, 22 Nov, 2023, 21:56 Ben Fein, @.***> wrote:

Dang, so Strapi just doesn't work with medusa for now from what you can tell?

I am also getting this error now, did you ever find a fix?

Nope, still an issue.

Dang, so Strapi just doesn't work with medusa for now from what you can tell?

— Reply to this email directly, view it on GitHub https://github.com/medusajs/medusa/issues/5040#issuecomment-1823090261, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXEQJHASZO22D4ZJD4X4GB3YFYRUJAVCNFSM6AAAAAA4WEFRO2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRTGA4TAMRWGE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

--

This message (including any attachments) may contain confidential, proprietary, privileged and/or private information. The information is intended to be for the use of the individual or entity designated above. If you are not the intended recipient of this message, please notify the sender immediately, and delete the message and any attachments. Any disclosure, reproduction, distribution or other use of this message or any attachments by an individual or entity other than the intended recipient is prohibited.   

SGFGOV avatar Nov 22 '23 18:11 SGFGOV

Did anyone found the solution, I am also stuck here

nishant94 avatar Mar 28 '24 11:03 nishant94