-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Labels
issue: bugIssue reporting a bugIssue reporting a bugseverity: criticalIf the issue has a security impact or breaks core usage of the productIf the issue has a security impact or breaks core usage of the productsource: core:content-type-builderSource is core/content-type-builder packageSource is core/content-type-builder packagestatus: confirmedConfirmed by a Strapi Team member or multiple community membersConfirmed by a Strapi Team member or multiple community members
Description
Bug report
Required System information
- Node.js version: v20.15.1
- NPM version: 10.7.0
- Strapi version: 4.25.3
- Database: SQLight
- Operating system: Windows 11
- Is your project Javascript or Typescript: JS
Describe the bug
When creating a new component and saving it, the server crashes with:
> 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 (90ms)
✔ Creating admin (13337ms)
⠙ Loading Strapi[ERROR] There seems to be an unexpected error, try again with --debug for more information
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ │
│ TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined │
│ at Object.join (node:path:433:7) │
│ at C:\Users\...\strapi-project\node_modules\@strapi\strapi\dist\core\loaders\components.js:17:31 │
│ at Array.forEach (<anonymous>) │
│ at C:\Users\...\strapi-project\node_modules\@strapi\strapi\dist\core\loaders\components.js:14:32 │
│ at Array.reduce (<anonymous>) │
│ at Object.loadComponents (C:\Users\...\strapi-project\node_modules\@strapi\strapi\dist\core\loaders\components.js:13:27) │
│ at async Strapi.loadComponents (C:\Users\...\strapi-project\node_modules\@strapi\strapi\dist\Strapi.js:320:23) │
│ at async Promise.all (index 6) │
│ at async Strapi.register (C:\Users\...\strapi-project\node_modules\@strapi\strapi\dist\Strapi.js:341:5) │
│ at async Strapi.load (C:\Users\...\strapi-project\node_modules\@strapi\strapi\dist\Strapi.js:425:5) │
│ │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
(System Paths abbreviated for anonymity)
Steps to reproduce the behavior
- Make a new project with
npx create-strapi-app@latest my-strapi-project --quickstart. - Go to Content Type Builder and create a new component.
- Fill out Display Name and Category.
- Select Text Field.
- Give the Text Field a name.
- Click Finish.
- Click Save.
- Screen > "Waiting for Restart".
- Server crashes.
When trying npm run develop the server crashes immediately with the same error.
Expected behavior
I should be able to create components with out any errors
thanhnha0706, TomaszPilch, ijohnpaul2000 and jsadoski-rockhall
Metadata
Metadata
Assignees
Labels
issue: bugIssue reporting a bugIssue reporting a bugseverity: criticalIf the issue has a security impact or breaks core usage of the productIf the issue has a security impact or breaks core usage of the productsource: core:content-type-builderSource is core/content-type-builder packageSource is core/content-type-builder packagestatus: confirmedConfirmed by a Strapi Team member or multiple community membersConfirmed by a Strapi Team member or multiple community members
Type
Projects
Status
Fixed/Shipped