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

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
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,

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=" 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=" 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
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  :(