Page 1 of 1

Failed to compile error when running in code mode

Posted: 18 Jan 2022, 15:44
by phelps.sg@gmail.com
Node version: v14.18.3
Operating system: Ubuntu 20.04
Theme designer version: 7.0.0

Launching with:

Code: Select all

export REACT_APP_EDITOR=code
npm start
Fails with the following error:

Code: Select all

Failed to compile

./src/assets/themes/mytheme/theme.scss (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--6-oneOf-5-3!./node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-5-4!./src/assets/themes/mytheme/theme.scss)
SassError: Invalid CSS after "...  padding: math": expected expression (e.g. 1px, bold), was ".div(nth($inputPadd"
        on line 15 of src/assets/designer/components/input/_autocomplete.scss
        from line 6 of src/assets/designer/_components.scss
        from line 3 of /home/sphelps/local/primereact-designer-7.0.0/src/assets/themes/mytheme/theme.scss
>>         padding: math.div(nth($inputPadding, 1), 2) nth($inputPadding, 2);

   ---------------------^

Re: Failed to compile error when running in code mode

Posted: 02 Feb 2022, 11:18
by mert.sincan
Hi,

Sorry for the delayed response! @mcandu, could you please check this issue?

Re: Failed to compile error when running in code mode

Posted: 03 Feb 2022, 09:45
by mcandu
Hi,

Could you please share your sass version that you use ?

Re: Failed to compile error when running in code mode

Posted: 20 Mar 2022, 20:41
by ChenRvn
i have also the same problem with react designer version 7

Re: Failed to compile error when running in code mode

Posted: 14 Apr 2022, 09:35
by mcandu
Hi @ChenRvn,

Could you tell me your sass name you use and version that you use on your end ?