-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Labels
issue: bugIssue reporting a bugIssue reporting a bugseverity: highIf it breaks the basic use of the productIf it breaks the basic use of the productsource: cliSource is cli packageSource is cli packagestatus: confirmedConfirmed by a Strapi Team member or multiple community membersConfirmed by a Strapi Team member or multiple community membersversion: 5Issue is present in Strapi 5Issue is present in Strapi 5
Description
Bug report
Required System information
- Node.js version: v18.20.4
- NPM version: 10.7.0
- Strapi version: 5.2.0
- Database: mysql
- Operating system: linux-x64 - Ubuntu 24.04.1 LTS
- Is your project Javascript or Typescript: Typescript
Describe the bug
While running the strapi cli using yarn (yarn strapi generate) the files generated end up being stored under node_modules/strapi/@generators/dist
Steps to reproduce the behavior
- Create a new strapi project using the cli
yarn create strapi - Try to generate a new API endpoint using the CLI
yarn strapi generatefollowing all the necessary steps - It will succeed but the files won't be in
src/apifolder - Try to generate the API endpoint again using the same name
- It will fail and print the location of the files previously generated
Expected behavior
The files should be generated at the folder src
Screenshots
Code snippets
N/A
Additional context
Tried the command using npx, npm run and yarn, all yielding the same result
ruvkr, czernika and EsGehkhuong-tran
Metadata
Metadata
Assignees
Labels
issue: bugIssue reporting a bugIssue reporting a bugseverity: highIf it breaks the basic use of the productIf it breaks the basic use of the productsource: cliSource is cli packageSource is cli packagestatus: confirmedConfirmed by a Strapi Team member or multiple community membersConfirmed by a Strapi Team member or multiple community membersversion: 5Issue is present in Strapi 5Issue is present in Strapi 5
Type
Projects
Status
Fixed/Shipped
Status
Done
