pattern-lab / patternlab-node

The Node version of Pattern Lab
http://patternlab.io
MIT License
2.05k stars 406 forks source link

Error serving PL after installing custom starterkit #1070

Closed bradfrost closed 5 years ago

bradfrost commented 5 years ago

@bmuenzenmeyer running `npm create pattern-lab, I chose the following:

Screen Shot 2019-10-11 at 4 34 19 PM

I pointed to the newly added vanilla handlebars starterkit.

When I went to build the project via npm run pl:serve I get the following error:

⊙ patternlab → serve: Serving your files …
Pattern Lab Node v3.0.3
Pattern Engine handlebars: good to go
Pattern Engine mustache: 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 /Users/frostbd/Desktop/pattern-lab/node_modules/@pattern-lab/uikit-workshop./node_modules/styleguidekit-mustache-default/views/. Pattern Lab won't work without this file.

Configuration key [paths.source.patternlabFiles] inside patternlab-config.json was found as the string './node_modules/styleguidekit-mustache-default/views/'
Since Pattern Lab Node Core 3.0.0 this key is an object. Suggest you update this key following this issue: https://github.com/pattern-lab/patternlab-node/issues/683.

Configuration key [debug] inside patternlab-config.json was found. As of Pattern Lab Node Core 3.0.0 this key is replaced with a new key, [logLevel]. This is a string with possible values ['debug', 'info', 'warning', 'error', 'quiet'].
Turning on 'info', 'warning', and 'error' levels by default, unless [logLevel] is present. If that is the case, [debug] has no effect.

Incremental builds enabled.
Pattern Lab is watching for changes to files under ./source/
Screen Shot 2019-10-11 at 4 35 25 PM

Looking at patternlab-config.json yields the following:

"patternlabFiles": "./node_modules/styleguidekit-mustache-default/views/",

Not sure what to update this to in order to get things to work.

bmuenzenmeyer commented 5 years ago

taking a look

bmuenzenmeyer commented 5 years ago

oh i see what is happening - the starterkit is merging in an old config - un momento

bmuenzenmeyer commented 5 years ago

@bradfrost please try again. Left you a DM about the sass

bmuenzenmeyer commented 5 years ago

this is fixed - issue was https://github.com/pattern-lab/starterkit-handlebars-vanilla contained a patternlab-config.json with old entries