Hi. Got a BUG
I just updated to
and got the following error:
⊙ patternlab → serve: Serving your files … Pattern Lab Node v5.14.0 Pattern Engine mustache: good to go Pattern Engine twig-php: good to go TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined ERROR: missing an essential file from /Users/***/node_modules/@pattern-lab/uikit-workshop[object Object]. Pattern Lab won't work without this file. Found plugin: plugin-node-uiextension
ahhh. always read the important stuff first ;) https://github.com/pattern-lab/patternlab-node/releases/tag/v5.14.0
@JosefBredereck question about the reordering in 5.14. Currently we name some of our folders with numbers, not so pattern lab will order them in a particular way but because we just want them to appear in a certain order in the overall folder structure going from most basic files to the most specific (e.g., /patterns/01-global, /patterns/02-layouts, /patterns/03-components, etc.). I created MD files for each of these folders to control the order in Pattern Lab, but it appears that the transition period for the numbered ordering is interfering with the naming of the MD files.
For example, I can't create a _01-global.md file and put 'order: 1' in it... I have to create a _global.md file for it to work. What will happen when the transition period is over, and do you know when that will be? At that point will changing the MD filename to _01-global.md work (which is what I'd expect)? Or is there a need for a change to be added now to support either filename during this transition period? We don't plan to remove those numbers from our folder structure even after the ordering is deprecated b/c we're naming them that way for a non-pattern lab related reason.
Hi, I'm having trouble with pseudo-patterns when using engine-twig (Twing). The pseudo pattern is rendered as the YAML/JSON file, and does not use the twig template.
I've had a nose at the source code and, when rendering,
pattern.relPath is used as the source file passed to Twing. However, when rendering a pseudo pattern, the value of
pattern.relPath is the JSON/YAML file so the wrong thing is used for the template.
It looks like the required value is under
pattern.basePattern.relPath when processing a pseudo-pattern. Changing https://github.com/pattern-lab/patternlab-node/blob/d18ddac58affb80c118dfb57dea9c2cd487c1e57/packages/engine-twig/lib/engine_twig.js#L133 to
var patternPath = pattern.basePattern ? pattern.basePattern.relPath : pattern.relPath; seems to fix it.
Hello. I run 'gulp' command and get error:
$ gulp Pattern Lab Node v5.14.0 Pattern Engine mustache: good to go Pattern Engine twig-php: good to go TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined ERROR: missing an essential file from /mnt/c/OpenServer/domains/ll.local/web/themes/custom/ll_theme/node_modules/@pattern-lab/uikit-workshop[object Object]. Pattern Lab won't work without this file. [21:47:52] Using gulpfile /mnt/c/OpenServer/domains/ll.local/web/themes/custom/ll_theme/gulpfile.js
Who knows how to fix?
I'm looking to deeply nest my .mustache files, for example
molecules/content/tiles/assignment-tile.mustache.Reading through the documentation I saw that adding
deeplyNested: trueto my
assignment-tile.md file might allow the .mustache file to deeply nest. But it doesn't, it remains at the /content level. I've also tried adding
"allPatternsAreDeeplyNested": true to my patternlab config file and this didn't work either. Can you help?
npm create pattern-lab
'npm WARN ERESOLVE overriding peer dependency 'npm WARN Found: firstname.lastname@example.org 'npm WARN node_modules/webpack 'npm WARN webpack@"^4.41.2" from @email@example.com 'npm WARN node_modules/@pattern-lab/uikit-workshop 'npm WARN @pattern-lab/uikit-workshop@"^5.14.0" from @firstname.lastname@example.org 'npm WARN node_modules/@pattern-lab/edition-node 'npm WARN 7 more (babel-loader, clean-css-loader, copy-webpack-plugin, ...) 'npm WARN 'npm WARN Could not resolve dependency: 'npm WARN peer webpack@"^3.1.0" from email@example.com 'npm WARN node_modules/no-emit-webpack-plugin 'npm WARN no-emit-webpack-plugin@"^1.0.0" from @firstname.lastname@example.org 'npm WARN node_modules/@pattern-lab/uikit-workshop 'npm WARN deprecated email@example.com: this library is no longer supported
I am currently running pattern lab on node 12 everything build perfectly the first time but
Omitting atoms-colors from styleguide patterns because it is marked as hidden within it's documentation.
Built Pattern Lab front end
Pattern Lab is watching for changes to files under ./source/
Pattern Lab is being served from http://127.0.0.1:3000
I am stuck into this and when I change something like a style file in the source folder - It seems like it is watching but don't update the styles automatically. Thanx for support.
components/test/test.twig). I can probably move these files into subdirectories, but should it work without doing that? Here's an example of the error (triggered by file
There was an error setting pattern subgroup data after markdown parsing for source/_patterns/05-templates/_.md Error: ENOTDIR: not a directory, open '/app/source/_patterns/05-templates/page.twig/_.md'
web/themes/custom/particle/dist/app-node-pl/pl/patternsfolder, where the generated component demos should be found is empty, so PL shows 404 only. Another project with the same(?) codebase works fine. I have no idea what the problem could be. Do you have any suggestion on what to check? (Using – a customised – particle 10.5.0 with node 10.18.1 and npm 6.14.5.)
Just in case if someone is interested. Over the last couple of weeks I was working on the first release of a custom UI Framework named hTWOo that implements Microsoft Fluent Design using pattern lab. The site went live today:
- Github Repo: https://github.com/n8design/htwoo
- PatternLab: https://lab.n8d.studio/htwoo/htwoo-core/?p=all
- Blog post: https://n8d.at/htwoo-ui-launched-fluent-design-in-html-and-css/
great work, thank you !!