SGFGOV / medusa-strapi-repo

Monorepo for all Strapi components to sync with medusa
MIT License
67 stars 23 forks source link

Error starting server after fresh clone of template #81

Open TAnas0 opened 3 weeks ago

TAnas0 commented 3 weeks ago

Describe the bug Running the recommended command npx create-strapi-app strapi-medusa --template https://github.com/Kyle772/strapi-medusa-template.git results in an error with versions:

Going into the resulting directory and running yarn develop , or running yarn start after a successful build, leads to the same error.

The command is recommended in the README of medusa-strapi package.

To Reproduce Steps to reproduce the behavior:

  1. Make sure you have the same versions as above
  2. Run the command: npx create-strapi-app strapi-medusa --template https://github.com/Kyle772/strapi-medusa-template.git

Expected behavior A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

Additional context Full log of the error:

? Choose your installation type (Use arrow keys)
❯ Quickstart (recommended) 
  Custom (manual settings) ? Choose your installation type Quickstart (recommended)
Creating a quickstart project.
Creating a new Strapi application at /home/bob/lab/medusa/strapi-medusa.
Creating files.
Installing medusa-strapi template.
- Installing dependencies:
Dependencies installed successfully.
Initialized a git repository.

Your application was created at /home/bob/lab/medusa/strapi-medusa.

Available commands in your project:

  yarn develop
  Start Strapi in watch mode. (Changes in Strapi project files will trigger a server restart)

  yarn start
  Start Strapi without watch mode.

  yarn build
  Build Strapi admin panel.

  yarn strapi
  Display all available commands.

You can start by doing:

  cd /home/bob/lab/medusa/strapi-medusa
  yarn develop

Running your Strapi application.

> strapi-medusa@0.1.0 develop
> strapi develop

- Building build context

[INFO] Including the following ENV variables as part of the JS bundle:
    - ADMIN_PATH
    - STRAPI_ADMIN_BACKEND_URL
    - STRAPI_TELEMETRY_DISABLED
✔ Building build context (115ms)
- Creating admin
✔ Creating admin (13935ms)
- Loading Strapi
[ERROR]  There seems to be an unexpected error, try again with --debug for more information 

┌──────────────────────────────────────────────────────────────────────────────┐│ 

   ApplicationError: The type is required                                     
   at getFieldSize (/home/bob/lab/medusa/strapi-medusa/node_modules/@strapi   
   /plugin-content-manager/dist/server/index.js:2765:15)                      
   at getDefaultFieldSize (/home/bob/lab/medusa/strapi-medusa/node_modules/   
   @strapi/plugin-content-manager/dist/server/index.js:1918:10)               
   at appendToEditLayout (/home/bob/lab/medusa/strapi-medusa/node_modules/@   
   strapi/plugin-content-manager/dist/server/index.js:1990:27)                
   at createDefaultEditLayout (/home/bob/lab/medusa/strapi-medusa/node_modu   
   les/@strapi/plugin-content-manager/dist/server/index.js:1935:10)           
   at createDefaultLayouts (/home/bob/lab/medusa/strapi-medusa/node_modules   
   /@strapi/plugin-content-manager/dist/server/index.js:1925:11)              
   at createDefaultConfiguration (/home/bob/lab/medusa/strapi-medusa/node_m   
   odules/@strapi/plugin-content-manager/dist/server/index.js:2021:20)        
   at async generateNewConfiguration (/home/bob/lab/medusa/strapi-medusa/no   
   de_modules/@strapi/plugin-content-manager/dist/server/index.js:2068:37)    
   at async Promise.all (index 15)                                            
   at async Object.syncConfigurations (/home/bob/lab/medusa/strapi-medusa/n   
   ode_modules/@strapi/plugin-content-manager/dist/server/index.js:2076:5)    
   at async Object.bootstrap (/home/bob/lab/medusa/strapi-medusa/node_modul   
   es/@strapi/plugin-content-manager/dist/server/index.js:28:3)               
github-actions[bot] commented 3 weeks ago

Hi Thank you for highlighting this issue.

TAnas0 commented 3 weeks ago

I would like to add that the template mentioned in the README points to a separate repository (https://github.com/Kyle772/strapi-medusa-template), which i found a bit weird. The template is a fork and is behind its origin https://github.com/SharmaPawan11/strapi-medusa-template/commits/master/. Maybe the documentation is out-of-date, or am I misunderstanding something wrong in how to get started with the template: should I rather just fork this whole repository?

github-actions[bot] commented 1 week ago

This issue is stale because it has been open for 14 days with no activity.