pattern-lab / edition-node-gulp

ARCHIVED - The gulp wrapper around patternlab-node core, providing tasks to interact with the core library and move supporting frontend assets.
MIT License
279 stars 111 forks source link

'all' default pattern not building. No errors. #73

Open mimiflynn opened 8 years ago

mimiflynn commented 8 years ago

I am using Pattern Lab Node- Gulp Edition v1.3.0 on Mac.

Expected Behavior

After successful build and serve, default screen should be 'all' pattern and that when clicking the link to the 'all' pattern would display all patterns.

Actual Behavior

A white screen displays.

Steps to Reproduce

Download v1.3.0 create some patterns gulp patternlab:serve all screen will be empty

mimiflynn commented 8 years ago

I had been dumping all of my _patterns into the new v1.3.0 directory, but when I add single files into the preexisting _patterns directory structure, it appears to build the 'all' pattern just fine. Is there a naming convention change I need to account for?

bmuenzenmeyer commented 8 years ago

It's recommended to follow this structure - http://patternlab.io/docs/pattern-organization.html

maxx1128 commented 8 years ago

I've been having the same issue in the same circumstances. It's affecting the "all" page and every page that contains more than one pattern. I only get a blank page with the following text:

Cannot GET /patterns/01-base/index.html?1472753431887

fugaciousness commented 8 years ago

Same issue as mimiflynn: It seems as though the pattern markup that should populate the public/styleguide/html/styleguide.html file (in this section:

) is not being correctly generated. The patterns are being constructed as outlined in patternlab.io: [patternType]/[patternName].[patternExtension]. The gulp file has the requisite referrals to the styleguide.html functionality/patterns...but still nothing on "ALL". No error, nothing.
mattiabonacini commented 6 years ago

OS: Windows 10 Node version: 8.11.1 NPM: 5.8.0

I got a similar issue. If I delete everything, re-install patternlab, and use gulp patternlab:serve everything works (after I re-import everything in source folder).

But if I keep it closed for long time, and for example, reboot my pc, and try to run it again I get a white page. Pattern Lab loads immediately, I just can see the header and menu, but everything is empty. Not a single error shown in node console, just a warning.

WARNING: missing or malformed ./source/_data/listitems.json file. Pattern Lab may not work without this file. Could not find pattern referenced with partial syntax README.md. This can occur when a pattern was renamed, moved, or no longer exists but it still referenced within a different template or within data as a link.

But that warning it's there even when it works...

Also after that warning I got a lot of warnings that my patterns are no longer found, despite I didn't move anything:

Could not find pattern referenced with partial syntax atoms\titles\h3.json. This can occur when a pattern was renamed, moved, or no longer exists but it still referenced within a different template or within data as a link.

It's a huge list since I got lots of patterns.

Any idea on how to fix this?

timhartmann commented 5 years ago

I have the same problem like above...