Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error starting server after fresh clone of template #81

Closed
TAnas0 opened this issue Jun 11, 2024 · 6 comments
Closed

Error starting server after fresh clone of template #81

TAnas0 opened this issue Jun 11, 2024 · 6 comments
Labels

Comments

@TAnas0
Copy link

TAnas0 commented Jun 11, 2024

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:

  • Node: v18.20.3 LTS Hydrogen
  • NPM: 10.7.0
  • Yarn: 1.22.22

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):

  • OS: Ubuntu 23.10, Kernel version 6.5.0-41-generic

Additional context
Full log of the error:

? Choose your installation type (Use arrow keys)
❯ Quickstart (recommended) 
  Custom (manual settings) �[27D�[27C�[2K�[1A�[2K�[1A�[2K�[G? Choose your installation type Quickstart (recommended)�[56D�[56C
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.

> [email protected] develop
> strapi develop

- Building build context

�[34m[INFO]�[39m Including the following ENV variables as part of the JS bundle:
    - ADMIN_PATH
    - STRAPI_ADMIN_BACKEND_URL
    - STRAPI_TELEMETRY_DISABLED
�[32m✔�[39m Building build context (115ms)
- Creating admin
�[32m✔�[39m Creating admin (13935ms)
- Loading Strapi
�[31m[ERROR]  There seems to be an unexpected error, try again with --debug for more information �[39m
�[31m�[39m
�[31m┌──────────────────────────────────────────────────────────────────────────────┐│ 
                                                                             
   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)               


Copy link

Hi Thank you for highlighting this issue.

@TAnas0
Copy link
Author

TAnas0 commented Jun 11, 2024

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?

Copy link

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

@github-actions github-actions bot added the stale label Jun 26, 2024
@IliyanIvanovZautre
Copy link

IliyanIvanovZautre commented Jul 9, 2024

@TAnas0 Did you figure it out, currently struggling with this as well.

EDIT: Never mind this seems to be a copy of #23

@github-actions github-actions bot removed the stale label Jul 10, 2024
Copy link

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

@github-actions github-actions bot added the stale label Jul 24, 2024
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants