legacy-knowledge-base
公開されました Jun. 30, 2025

Theme upgrade issues

written-by

Balázs Létai

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

Issue

  • We are moving from Liferay 7.3 to Quarterly releases and we would like to upgrade our theme, but facing errors e.g. "No mixin named media-query." or "Undefined variable: '$nav-underline-font-size'."

Environment

  • Liferay Quarterly Releases
  • Liferay Theme Generator

Resolution

  • Make sure you use Node 16.13+, npm 8.1+, theme generator 10.2+, gulp 4+
    Node version information

  • Use gulp upgrade command in the theme's folder to upgrade the theme to Liferay 7.4
  • Steps:
    • delete the build, the dist and the node_modules folder
    • In the src/css/_imports.scss file add @import "clay/cadmin-variables";
    • From the theme's main folder run npm install command
    • Run gulp upgrade and follow the instructions (Add the bootstrap compatibility layer)
    • Then gulp build

Additional Information

 

 

did-this-article-resolve-your-issue

legacy-knowledge-base