hello, i'm using metronic8 angular and trying to use widget-27 from demo 50 inside angular component and get error KTUtil is not defined
["Uncaught ReferenceError: KTUtil is not defined"]
and added scripts files in angular.json
["src/assets/plugins.bundle.js",
"src/assets/script.bundle.js",
"src/assets/widget-27.js",
"src/assets/widgets.bundle.js",
]
code example tested taken from :
"\metronic_html_v8.1.8_demo50\demo50\dist\dashboards\website-analytics.html"
Hi,
Could you please this?
https://devs.keenthemes.com/question/metronic-8-angular-version-and-html-version-errors#answers
Thanks
Hi Ahmed,
Could you please open the browser's developer console and look for any additional errors or warnings related to script loading. Make sure there are no 404 errors indicating that the script files are not found. If there are any other errors, address them accordingly.
Double-check the paths to the script files in your Angular configuration (angular.json) to ensure they are correct and match the actual file locations.
Thanks
no error or warning ,
but now i want to take the all of home page i took the html file and put it in html angular component and took the css and js files also and put it in angular.json
"styles": [
"src/styles.scss",
"src/assets/datatables.bundle.css",
"src/assets/vis-timeline.bundle.css",
"src/assets/plugins.bundle.css",
"src/assets/style.bundle.css"
],
"scripts": [
"src/assets/plugins.bundle.js",
"src/assets/scripts.bundle.js",
"src/assets/datatables.bundle.js",
"src/assets/vis-timeline.bundle.js"
]
put when i'm trying to serve angular project get many of errors :
"./src/assets/plugins.bundle.css - Error: Module Error (from ./node_modules/postcss-loader/dist/cjs.js):"