To upgrade the Node version of Pattern Lab do the following:
- Ensure that you're using at least Node.js version 14, to which we've upgraded to with !1430
- If you haven't migrated from
mustache
tohandlebars
engine and templates so far, now would be a good time asmustache
has been replaced byhandlebars
as the default template language with version 5 of pattern lab, andmustache
might get removed sooner rather than later. To make a long story short,handlebars
is mostly compatible, but more mature thanmustache
, so a migration shouldn't be too hard, and even beneficial. Additionally usingmustache
templates most likely won't work anymore starting with this new major version 6 due to these potentially breaking changes formustache
usage: - Please explicitly configure your used engine within
patternlab-config.json
as described within the documentations section https://patternlab.io/docs/editing-the-configuration-options/#heading-engines. The previous way of scanningnode_modules
folder for pattern engines is deprecated and will be removed with version 7.