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

Debug file: PatternLab.json. won't build #7

Open

Description

@AndrewLeedham

I am using Pattern Lab Node v2.0.0 on Windows, using the gulp configuration. Along with pattern-engine-node-handlebars v1.0.2.

Expected Behavior

Running patternlab:build or patternlab:serve with "debug": true in the patternlab-config.json, should generate a patternlab.json file containing both mustache and handlebars engine references.

Actual Behavior

Following error occurs during the build process:

[12:06:40] TypeError: Converting circular structure to JSON
    at Object.stringify (native)
    at printDebug (C:\wamp64\www\plabh\node_modules\patternlab-node\core\lib\patternlab.js:256:51)
    at Object.build (C:\wamp64\www\plabh\node_modules\patternlab-node\core\lib\patternlab.js:610:7)
    at build (C:\wamp64\www\plabh\gulpfile.js:105:34)
    at bound (domain.js:280:14)
    at runBound (domain.js:293:12)
    at asyncRunner (C:\wamp64\www\plabh\node_modules\async-done\index.js:36:18)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickDomainCallback (internal/process/next_tick.js:122:9)
Steps to Reproduce
  1. Fresh prebuilt install of edition-node-gulp.
  2. npm install --save-dev patternengine-node-handlebars
  3. Set "debug": true in patternlab-config.json
  4. Run gulp patternlab:serve

Activity

  1. Nubville commented on Aug 5, 2019

    @Nubville

    @AndrewLeedham did you ever figure out what you had to do to solve this?

  2. AndrewLeedham commented on Aug 5, 2019

    @AndrewLeedham
    Author

    @AndrewLeedham did you ever figure out what you had to do to solve this?

    Unfortunately not, ended up using the mustache patternengine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions