Skip to content

Unable to get Next application to start #17341

Discussion options

You must be logged in to vote

I located the solution after some deep digging on google searches.

Hat tips to these posts:

My fixes:

  1. Install mariadb locally (not globally)

  2. Add the entry for sequelize and sequelize-typescript to next.config.js

// @ts-check
/** @type {import('next').NextConfig} */
const nextConfig = {
    /* config options here */
    experimental: {
        serverComponentsExternalPackages: ['sequelize', 'sequelize-typescript'],
    }
}
module.exports = nextConfig
  1. Import mariadb before calling the constructor on Sequelize
    import mariadb from 'mariadb';

I hope this help someone!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by maccamb
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant