-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
postcss-calc cannot parse objects/_scrollable-pane.scss (moj-frontend v1.6.1) #433
Comments
postcss-calc isn't happy about the `calc()` function without a `var()` (see #433). This new syntax is compatible and produces the same output in our distributed file.
@ivanELEC Thanks for reporting this, I've applied your changes in #425 and confirmed it doesn't affect our dist files, which is good. Could you install that branch ( |
sure will give it a shot now |
Getting this error when trying to run that command: |
Ah sorry, that was naive on my part. I forgot that what we publish to NPM isn't just the plain GitHub repo. I'll publish it to a personal clone instead. |
Right, this is a bit weird but you can install my clone under the normal namespace with:
You should then be able to see the We're working on making prereleases better in moj-frontend, so this process has been a good reminder of why 😄 |
yeah, I can confirm that works for me - thanks so much. Will look forward to this being added in the next version |
Amazing, I'll get that in and released ASAP |
postcss-calc isn't happy about the `calc()` function without a `var()` (see #433). This new syntax is compatible and produces the same output in our distributed file.
Fixed in 1.6.4 (release upcoming) |
Prerequisites
Description
I am trying to update @ministryofjustice/moj-frontend to v1.6.3 in my Ruby-on-Rails project.
When installing and compiling assets for this project, the following command is run:
bundle exec rails assets:precompile
When this command is run, postcss-calc, a dependency that reduces calculations in css etc files, has the following error:
JisonLexerError: Lexical error on line 1: Unrecognized text.
This is a current issue in postcss-calc which has been open for about a year, but it doesn't look like there's any activity on it
I have found that the following changes to src/moj/objects/_scrollable-pane.scss:
Steps to Reproduce
bundle exec rails assets:precompile
Expected behaviour: Packages successfully install
Actual behaviour: Parser error occurs
Reproduces how often: Always
Versions
From v1.6.1
Additional Information
Note the 2 lines that were changed were originally:
$scrollableTransparentColor calc($scrollableShadowSize * 2)
The text was updated successfully, but these errors were encountered: