Unable to use metronic 8 + laravel custom assests configuration
Laravel 9 + Metronic 8 + Demo 1
This is how i configure custom js file
config/global/pages.php
"testurl" => [
"title" => "Test Page Tile",
"assets" => [
"custom" => [
"css" => [
"plugins/custom/flatpickr/flatpickr.bundle.css"
],
"js" => [
"plugins/global/plugins.bundle.js",
"js/custom/lot/schedulePickup.js",
],
],
],
], in 'js/custom/lot/schedulePickup.js',
$("#pickupDate").flatpickr({
dateFormat: "Y-m-d",
minDate: "today",
weekNumbers: true
}); i also tried resources/assets/core/plugins/plugins.js
module.exports = [
..........
// Flatpickr
"node_modules/flatpickr/dist/flatpickr.min.js",
"resources/assets/core/js/vendors/plugins/flatpickr.init.js",
]; and one more thing i don't want to use
import flatpickr from 'flatpickr'; // THIS IS NOT CORRECT SOLUTION
becasue i want to use third-party libs given by metronic......if i wanted to include it like that, i would've choosen another theme or made one by myself.
NOTHING WORKED PLEASE HELP
Replies (4)
Hi 
Usually, we release the update around 1 or 2 weeks once. This time it takes a long time because we have planned to add big updates with many more features once and for all. We have released a new update yesterday. Feel free to ask if you have any more questions.
Thanks
Hi,
Sorry that we have missed your reply. How's the issue going? Do you still face the issue?
The above logs are just warning. There will be no issue with the assets build. The warning messages will be gone when the plugin author releases future updates. The updates will be automatically installed when running "yarn upgrade"
Thanks
Yeah everything is running fine so far, thank you. (JOKE : and as a developer we are suppose to ignore the warnings, only ERRORS matters to us when we're dealing with npm :D ) You have no idea how egarly i am waiting for new update, well not just me many of us, it's been so long now, i saw once three updates in month, that was awsom, and now it's been 3-4 months i guess.
Please explain this also
<pre> npm audit fix --force npm WARN using --force Recommended protections disabled. npm WARN audit fix ansi-regex@5.0.0 node_modules/npm/node_modules/cli-table3/node_modules/ansi-regex npm WARN audit fix ansi-regex@5.0.0 is a bundled dependency of npm WARN audit fix ansi-regex@5.0.0 npm@7.24.2 at node_modules/npm npm WARN audit fix ansi-regex@5.0.0 It cannot be fixed automatically. npm WARN audit fix ansi-regex@5.0.0 Check for updates to the npm package. npm WARN audit fix ansi-regex@3.0.0 node_modules/npm/node_modules/string-width/node_modules/ansi-regex npm WARN audit fix ansi-regex@3.0.0 is a bundled dependency of npm WARN audit fix ansi-regex@3.0.0 npm@7.24.2 at node_modules/npm npm WARN audit fix ansi-regex@3.0.0 It cannot be fixed automatically. npm WARN audit fix ansi-regex@3.0.0 Check for updates to the npm package. npm WARN audit fix json-schema@0.2.3 node_modules/npm/node_modules/json-schema npm WARN audit fix json-schema@0.2.3 is a bundled dependency of npm WARN audit fix json-schema@0.2.3 npm@7.24.2 at node_modules/npm npm WARN audit fix json-schema@0.2.3 It cannot be fixed automatically. npm WARN audit fix json-schema@0.2.3 Check for updates to the npm package. npm WARN audit fix jsprim@1.4.1 node_modules/npm/node_modules/jsprim npm WARN audit fix jsprim@1.4.1 is a bundled dependency of npm WARN audit fix jsprim@1.4.1 npm@7.24.2 at node_modules/npm npm WARN audit fix jsprim@1.4.1 It cannot be fixed automatically. npm WARN audit fix jsprim@1.4.1 Check for updates to the npm package. npm WARN audit Updating npm to 8.12.1,which is a SemVer major change. npm WARN audit No fix available for quill@<=1.3.7 removed 65 packages, changed 95 packages, and audited 1471 packages in 10s 145 packages are looking for funding run `npm fund` for details # npm audit report nth-check <2.0.1 Severity: high Inefficient Regular Expression Complexity in nth-check - https://github.com/advisories/GHSA-rp65-9cf3-cjxr fix available via `npm audit fix` node_modules/webpack-rtl-plugin/node_modules/nth-check css-select <=3.1.0 Depends on vulnerable versions of nth-check node_modules/webpack-rtl-plugin/node_modules/css-select svgo 1.0.0 - 1.3.2 Depends on vulnerable versions of css-select node_modules/webpack-rtl-plugin/node_modules/svgo postcss-svgo 4.0.0-nightly.2020.1.9 - 5.0.0-rc.2 Depends on vulnerable versions of svgo node_modules/webpack-rtl-plugin/node_modules/postcss-svgo cssnano-preset-default <=4.0.8 Depends on vulnerable versions of postcss-svgo node_modules/webpack-rtl-plugin/node_modules/cssnano-preset-default cssnano 4.0.0-nightly.2020.1.9 - 4.1.11 Depends on vulnerable versions of cssnano-preset-default node_modules/webpack-rtl-plugin/node_modules/cssnano webpack-rtl-plugin * Depends on vulnerable versions of @romainberger/css-diff Depends on vulnerable versions of cssnano Depends on vulnerable versions of rtlcss node_modules/webpack-rtl-plugin postcss <7.0.36 Severity: moderate Regular Expression Denial of Service in postcss - https://github.com/advisories/GHSA-566m-qj78-rww5 fix available via `npm audit fix` node_modules/@romainberger/css-diff/node_modules/postcss node_modules/webpack-rtl-plugin/node_modules/rtlcss/node_modules/postcss @romainberger/css-diff * Depends on vulnerable versions of postcss node_modules/@romainberger/css-diff webpack-rtl-plugin * Depends on vulnerable versions of @romainberger/css-diff Depends on vulnerable versions of cssnano Depends on vulnerable versions of rtlcss node_modules/webpack-rtl-plugin rtlcss <=2.6.2 Depends on vulnerable versions of postcss node_modules/webpack-rtl-plugin/node_modules/rtlcss quill <=1.3.7 Severity: moderate Cross-site Scripting in quill - https://github.com/advisories/GHSA-4943-9vgg-gr5r No fix available node_modules/quill 11 vulnerabilities (4 moderate, 7 high) To address issues that do not require attention, run: npm audit fix Some issues need review, and may require choosing a different dependency. </pre>