This is for your information, hopefully it may be of help to others.
I have followed the instructions given in your video Your First Project - Metronic 8 Admin Template https://www.youtube.com/watch?v=2uWJpnuCMKQ , using the demo21 template. When it comes to add the asset folder to the project folder with gulp, using the command gulp --demo21, I get the error SyntaxError: Cannot use import statement outside a module.
This error can be resolved by adding the line "type": "module" to package.json in the following way:
{
"name": "metronic",
"version": "8.0.37",
"description": "Metronic - Bootstrap 5 HTML, VueJS, React, Angular & Laravel Admin Dashboard Theme",
"main": "gulpfile.js",
"type": "module", <--- add this line
"dependencies": {
....
Hi Marco,
This config in package.json is required for the gulp build.
"type": "module"