Skip to content

[4.2 beta] - Error: Unknown dialect undefined on strapi app when start develop #13237

@rodgeraraujo

Description

@rodgeraraujo

Bug report

Required System information

  • Node.js version: v16.14.0
  • NPM version: 8.5.4
  • Strapi version: 4.2.0-beta.2
  • Database: postgres
  • Operating system: Mac OS (M1)

Describe the bug

When using the 4.2.0-beta.2 with typescript I get an error.

Steps to reproduce the behavior

  1. strapi develop
  2. See error

Expected behavior

Strapi start develop correctly.

Code snippets

> strapi develop

Building your admin UI with development configuration...
Admin UI built successfully
[2022-05-04 15:27:52.709] debug: ⛔️ Server wasn't able to start properly.
[2022-05-04 15:27:52.710] error: Unknown dialect undefined
Error: Unknown dialect undefined
    at getDialectClass (/Workspace/projects/project-name/node_modules/.pnpm/@strapi+database@4.2.0-beta.2_pg@8.7.3/node_modules/@strapi/database/lib/dialects/index.js:12:13)
    at getDialect (/Workspace/projects/project-name/node_modules/.pnpm/@strapi+database@4.2.0-beta.2_pg@8.7.3/node_modules/@strapi/database/lib/dialects/index.js:19:23)
    at new Database (/Workspace/projects/project-name/node_modules/.pnpm/@strapi+database@4.2.0-beta.2_pg@8.7.3/node_modules/@strapi/database/lib/index.js:27:20)
    at Function.Database.init (/Workspace/projects/project-name/node_modules/.pnpm/@strapi+database@4.2.0-beta.2_pg@8.7.3/node_modules/@strapi/database/lib/index.js:73:33)
    at Strapi.bootstrap (/Workspace/projects/project-name/node_modules/.pnpm/@strapi+strapi@4.2.0-beta.2_d1912f1bcfa17781bbbf94d8c8dc7418/node_modules/@strapi/strapi/lib/Strapi.js:385:30)
    at Strapi.load (/Workspace/projects/project-name/node_modules/.pnpm/@strapi+strapi@4.2.0-beta.2_d1912f1bcfa17781bbbf94d8c8dc7418/node_modules/@strapi/strapi/lib/Strapi.js:448:16)
    at async Strapi.start (/Workspace/projects/project-name/node_modules/.pnpm/@strapi+strapi@4.2.0-beta.2_d1912f1bcfa17781bbbf94d8c8dc7418/node_modules/@strapi/strapi/lib/Strapi.js:196:9)
 ELIFECYCLE  Command failed with exit code 1.

Additional context

When I use the version 4.2.0-beta.0 this issue does not happen and the project work as expected. But in versions 4.2.0-beta.1 and 4.2.0-beta.2 I have the same issue.

Metadata

Metadata

Assignees

Labels

flag: EEIssues correlates to internal EE ticketissue: bugIssue reporting a bugseverity: highIf it breaks the basic use of the productsource: typescriptSource is related to TypeScript (typings, tooling, ...)status: confirmedConfirmed by a Strapi Team member or multiple community members

Type

No type

Projects

Status

Archived

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions