Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

RTL Style Error (Metronic7 - Angular - Demo2)


I'm trying to use RTL in Angular-Demo2 version, but the generated rtl.style.css has an error that makes the project unable to run
And when I updated the "webpack", it gave me a different error that prevented the project from working.
What should I do?

Another question, I want to apply rtl & ltr both in the same project for arabic and english language.
How and where should I put a condition based on language to manipulate the 2 styles and html tag direction.


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


Hi,

The error seems the webpack does not process the SCSS codes into CSS. As you said, you have updated the webpack. Are you working on our webpack-rtl.config.js file? There is sass-loader plugin for converting SCSS to CSS. Could you please verify if this part exists in your webpack config?

Thanks



Yes, I did, I put the rtl.style.css in the style.scss
but it gives me that
<img src="https://mail.google.com/mail/u/0?ui=2&amp;ik=f730995b9d&amp;attid=0.1&amp;permmsgid=msg-a:r7399727550284018675&amp;th=17e97598658389be&amp;view=fimg&amp;fur=ip&amp;sz=s0-l75-ft&amp;attbid=ANGjdJ_iMXSWIm2Itkzv6J0tDDdl2_wgyrrjWZIF0xrkl6e0V687k8jLqs9aYqWKZBsZKe11-d-kduG1kZavmJ403D_CconfOM848w26lGquChjXt9nzefk0xlVG_Bo&amp;disp=emb&amp;realattid=ii_kyvskg840" alt="image.png" width="452" height="254" data-image-whitelisted="" class="CToWUd a6T" tabindex="0">

the webpack error is like that, And in the terminal it keeps showing "Generating browser application bundles (phase: additional asset processing)" as if it a finite loop
<img src="https://mail.google.com/mail/u/0?ui=2&amp;ik=f730995b9d&amp;attid=0.1&amp;permmsgid=msg-a:r8360236216481152302&amp;th=17e9bd79c0b4a0b6&amp;view=fimg&amp;fur=ip&amp;sz=s0-l75-ft&amp;attbid=ANGjdJ-RvwqdqRVG3TQXhwFccjGWV6Aktj44ZVRBLTeeqYEy-3YRWA5h_7vgQFkW2dGtMqA_EHjVHz9ChjrmljN75SWUieXFkad33ekJU-tqLqaJO4WSa8bWG2ZyqG8&amp;disp=emb&amp;realattid=ii_kyx0w0gk2" alt="image.png" width="472" height="265" data-image-whitelisted="" class="CToWUd a6T" tabindex="0">



Hi,

Could you please share the error when you updated the webpack?

The CSS file needs to be loaded in this file and it loads before the time.
/angular/demo1/src/styles.scss

At the moment, Metronic Angular does not support changing RTL/LTR programmatically. You have to customize it.

Thanks


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(