Hi,
I just got your theme metronic_v8.2.3, but the bundling theme assets is not working with Gulp nor Webpack in Flask.
I am following the guide here: https://preview.keenthemes.com/flask/metronic/docs/getting-started
Errors:
For webpack: npm run build
* First removing "type": "module"
[webpack-cli] Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
- configuration[0].entry['js/widgets.bundle'] should be a non-empty array.
-> All modules are loaded upon startup. The last one is exported.
Same for: npm run build --demo1
For gulp: gulp * npx gulp
* "type": "module", back in starterkit\_keenthemes\tools\package.json
Using gulp config file: "../../gulp.config.js"
[15:44:31] Using gulpfile D:\P\metronic_flask_v8.2.3\starterkit\_keenthemes\tools\gulpfile.js
[15:44:31] Starting 'default'...
[15:44:31] Starting 'cleanTask'...
[15:44:31] Finished 'cleanTask' after 6.2 ms
[15:44:31] Starting 'buildBundleTask'...
[15:44:31] Finished 'buildBundleTask' after 48 ms
[15:44:31] Finished 'default' after 56 ms
Error in plugin "sass"
Message:
..\src\sass\style.bundle.css
Error: TypeError: null: type 'JSNull' is not a subtype of type 'String'
D:\P\metronic_flask_v8.2.3\starterkit\_keenthemes\tools\node_modules\sass\sass.dart.js:6352
throw error;
^
Error: TypeError: null: type 'JSNull' is not a subtype of type 'String'
at Object.wrapException (D:\P\metronic_flask_v8.2.3\starterkit\_keenthemes\tools\node_modules\sass\sass.dart.js:2153:43)
at Object._failedAsCheck (D:\P\metronic_flask_v8.2.3\starterkit\_keenthemes\tools\node_modules\sass\sass.dart.js:3633:15)
etc.
Could there be something missing in the guide? Maybe more steps are required to make this work?
Kind regards,
Peter
Hi Peter,
We will update it as soon as possible for the next release update. Thank you.
Hi Faizal,
I'm sorry but the solution you provide did not work for me.
For the moment I cannot use the theme with django because of that.
I look for the gulp-dart-sass/sass library and the verion 1.70.0 does not exist, so I don't understand, the max version gulp-dart-sass is 1.1.0.
Can you tell me how to make it works?
Hi Peter,
A conflict with the latest version of the dart-sass plugin likely causes this error. Try adding the following code to your package.json:
"resolutions": {
"gulp-dart-sass/sass": "1.70.0"
}
Hi Faizal,
Thank you for your reply, unfortunately I did not have enough time, and I might be doing something wrong, but it does not work.
Could you please debug on your side and release updated version? I will download the newest version from https://themeforest.net/downloads.
I am sure it will be okay then.