Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Metronic 9.2.0 issues for Angular


I had followed step by step instructions for the Angular integration, and facing many issues.

i get the following errors when I run "ng serve"

I appreciate if you can update the github repo for angular with metronic 9.2.0 least as a baseline.

Application bundle generation failed. [1.552 seconds]

â–² [WARNING] All "@import" rules must come first [invalid-@import]

src/assets/metronic/css/styles.css:8:0:
8 │ @import "./config.ktui";
╵ ~~~~~~~

This rule cannot come before an "@import" rule

src/assets/metronic/css/styles.css:5:0:
5 │ @source '../../dist/assets/vendors/ktui/';
╵ ^


â–² [WARNING] All "@import" rules must come first [invalid-@import]

src/assets/metronic/css/styles.css:11:0:
11 │ @import '../../node_modules/@keenthemes/ktui/styles.css';
╵ ~~~~~~~

This rule cannot come before an "@import" rule

src/assets/metronic/css/styles.css:5:0:
5 │ @source '../../dist/assets/vendors/ktui/';
╵ ^


â–² [WARNING] All "@import" rules must come first [invalid-@import]

src/assets/metronic/css/styles.css:14:0:
14 │ @import "./components/index";
╵ ~~~~~~~

This rule cannot come before an "@import" rule

src/assets/metronic/css/styles.css:5:0:
5 │ @source '../../dist/assets/vendors/ktui/';
╵ ^


â–² [WARNING] All "@import" rules must come first [invalid-@import]

src/assets/metronic/css/styles.css:17:0:
17 │ @import "./demos/demo1.css";
╵ ~~~~~~~

This rule cannot come before an "@import" rule

src/assets/metronic/css/styles.css:5:0:
5 │ @source '../../dist/assets/vendors/ktui/';
╵ ^


✘ [ERROR] Could not resolve "tailwindcss"

src/assets/metronic/css/styles.css:2:8:
2 │ @import 'tailwindcss';
╵ ~~~~~~~~~~~~~

You can mark the path "tailwindcss" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.


✘ [ERROR] Could not resolve "node_modules/@keenthemes/ktui/dist/ktui.js" [plugin angular-script-global]


Watch mode enabled. Watching for file changes...


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


Hi

Sorry for the delay.
We updated latest docs for simpler integration and angular seed project for angular.

https://keenthemes.com/metronic/tailwind/docs/getting-started/integration/angular

https://github.com/keenthemes/metronic-tailwind-html-integration

Thanks



Having the same issues, hoping for a soon update



Having the same issues, hoping for a soon update


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(