Skip to content
This repository has been archived by the owner on Dec 10, 2019. It is now read-only.

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

Open
mimiflynn opened this issue Aug 17, 2016 · 6 comments
Open

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

mimiflynn opened this issue Aug 17, 2016 · 6 comments

Comments

@mimiflynn
Copy link

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
Copy link
Author

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
Copy link
Member

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

@maxx1128
Copy link

maxx1128 commented Sep 1, 2016

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
Copy link

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
Copy link

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
Copy link

I have the same problem like above...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants