I’ve edited the config/database.js according to all the articles/tutorials I’m able to find, then I do the build, then try to start Strapi in dev mode and I get this error. Does this make sense to you?..
Building your admin UI with development configuration …
✔ Webpack Compiled successfully in 2.34m
Admin UI built successfully root@nodejs12181onubuntu2004-s-1vcpu-1gb-intel-nyc1-01:/home/locohost/strapi# npm run develop
firstname.lastname@example.org develop /home/locohost/strapi strapi develop
[2022-01-19 18:03:40.006] debug: ⛔️ Server wasn’t able to start properly.
[2022-01-19 18:03:40.009] error: Unknown dialect undefined
Error: Unknown dialect undefined
at getDialectClass (/home/locohost/strapi/node_modules/@strapi/database/lib/dialects/index.js:12:13)
at getDialect (/home/locohost/strapi/node_modules/@strapi/database/lib/dialects/index.js:19:23)
at new Database (/home/locohost/strapi/node_modules/@strapi/database/lib/index.js:38:20)
at Function.Database.init (/home/locohost/strapi/node_modules/@strapi/database/lib/index.js:84:33)
at Strapi.bootstrap (/home/locohost/strapi/node_modules/@strapi/strapi/lib/Strapi.js:347:30)
at Strapi.load (/home/locohost/strapi/node_modules/@strapi/strapi/lib/Strapi.js:410:16)
at async Strapi.start (/home/locohost/strapi/node_modules/@strapi/strapi/lib/Strapi.js:161:9)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! email@example.com develop:
npm ERR! Exit status 1
npm ERR! Failed at the firstname.lastname@example.org develop script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!