hello i am trying to setup a mysql database for users accounts and im getting this error any help as i cannot figure this out TypeError: exphbs is not a function
const { engine } = require('express-handlebars');
const bodyParser = require('body-parser');
const mysql = require('mysql');
require('dotenv').config();
const app = express();
const port = process.env.PORT || 5000;
// Parsing middleware
// Parse application/x-www-form-urlencoded
// app.use(bodyParser.urlencoded({ extended: false }));
app.use(express.urlencoded({extended: true})); // New
// Parse application/json
// app.use(bodyParser.json());
app.use(express.json()); // New
// Static Files
app.use(express.static('public'));
// Templating Engine
app.engine('hbs', exphbs( {extname: '.hbs' }));
app.set('view engine', 'hbs');
// Connection Pool
// You don't need the connection here as we have it in userController
// let connection = mysql.createConnection({
// host: process.env.DB_HOST,
// user: process.env.DB_USER,
// password: process.env.DB_PASS,
// database: process.env.DB_NAME
// });```