I downloaded the Laravel starter kit from: https://devs.keenthemes.com/metronic/laravel
But it has many JS issues in the console related to scripts.bundle.js
, it seems like ordering is the issue, in which the component JS is getting loaded in script.js:
const glob = require('glob');
// Keenthemes' plugins
var componentJs = glob.sync(`resources/_keenthemes/src/js/components/*.js`) || [];
var coreLayoutJs = glob.sync(`resources/_keenthemes/src/js/layout/*.js`) || [];
module.exports = [
...componentJs,
...coreLayoutJs,
'resources/mix/common/button-ajax.js'
];
Hi kt James
For the JS error in the console log. Could you please try to rebuild the assets using these commands:
npm install
npm run dev
Then proceed with php artisan serve.
We are releasing Metronic updates soon. The fixes will be included.
Thanks