Getting this error after following Grand Reality’s tutorial on getting started with Strapi and Google App Engine
“Error: Unknow dialect undefined
at getDialectClass (/workspace/node_modules/@strapi/database/lib/dialects/index.js:12:13)
at getDialect (/workspace/node_modules/@strapi/database/lib/dialects/index.js:19:23)
at new Database (/workspace/node_modules/@strapi/database/lib/index.js:38:20)
at Function.Database.init (/workspace/node_modules/@strapi/database/lib/index.js:84:33)
at Strapi.bootstrap (/workspace/node_modules/@strapi/strapi/lib/Strapi.js:347:30)
at Strapi.load (/workspace/node_modules/@strapi/strapi/lib/Strapi.js:410:16)
at async Strapi.start (/workspace/node_modules/@strapi/strapi/lib/Strapi.js:161:9)”
Any ideas what might be going wrong? Appreciate any insight you might have.
If you are starting a Typescript project, you should follow the Start strapi programmatically section in TypeScript | Strapi Documentation , otherwise you have to deploy tsconfig.json file and src and config dirs together with the dist dir to production env if you try to start it with strapi start.
This is because the @strapi/typescript-utils/lib/utils/is-using-typescript uses the tsconfig.json file to determine whether you are starting a Typescript project or a Javascript project when running strapi start.