matt-diehl / YAPL

A style/pattern guide for sites
5 stars 1 forks source link

Incompatibility with Panini #48

Closed matt-diehl closed 6 years ago

matt-diehl commented 6 years ago

When used in conjunction with Foundation/Panini, the following error occurs:

Error: Panini: rendering error occured.
TypeError: array.sort is not a function
    at Panini.render (/path/to/project/node_modules/panini/lib/render.js:80:11)
    at DestroyableTransform.Transform._read (/path/to/project/node_modules/readable-stream/lib/_stream_transform.js:184:10)
    at DestroyableTransform.Transform._write (/path/to/project/node_modules/readable-stream/lib/_stream_transform.js:172:83)
    at doWrite (/path/to/project/node_modules/readable-stream/lib/_stream_writable.js:428:64)
    at writeOrBuffer (/path/to/project/node_modules/readable-stream/lib/_stream_writable.js:417:5)
    at DestroyableTransform.Writable.write (/path/to/project/node_modules/readable-stream/lib/_stream_writable.js:334:11)
    at DestroyableTransform.ondata (/path/to/project/node_modules/readable-stream/lib/_stream_readable.js:619:20)
    at emitOne (events.js:116:13)
    at DestroyableTransform.emit (events.js:211:7)
    at addChunk (/path/to/project/node_modules/readable-stream/lib/_stream_readable.js:291:12)
    at readableAddChunk (/path/to/project/node_modules/readable-stream/lib/_stream_readable.js:278:11)
    at DestroyableTransform.Readable.push (/path/to/project/node_modules/readable-stream/lib/_stream_readable.js:245:10)
    at DestroyableTransform.Transform.push (/path/to/project/node_modules/readable-stream/lib/_stream_transform.js:148:32)
    at Pumpify.onReadable (/path/to/project/node_modules/to-through/index.js:25:14)
    at emitNone (events.js:106:13)
    at Pumpify.emit (events.js:208:7)
    at emitReadable_ (/path/to/project/node_modules/readable-stream/lib/_stream_readable.js:504:10)
    at emitReadable (/path/to/project/node_modules/readable-stream/lib/_stream_readable.js:498:62)
    at addChunk (/path/to/project/node_modules/readable-stream/lib/_stream_readable.js:298:29)
    at readableAddChunk (/path/to/project/node_modules/readable-stream/lib/_stream_readable.js:278:11)
    at Pumpify.Readable.push (/path/to/project/node_modules/readable-stream/lib/_stream_readable.js:245:10)
    at Pumpify.Duplexify._forward (/path/to/project/node_modules/duplexify/index.js:170:26)
    at DestroyableTransform.onreadable (/path/to/project/node_modules/duplexify/index.js:134:10)
    at emitNone (events.js:106:13)
    at DestroyableTransform.emit (events.js:208:7)
    at emitReadable_ (/path/to/project/node_modules/readable-stream/lib/_stream_readable.js:504:10)
    at emitReadable (/path/to/project/node_modules/readable-stream/lib/_stream_readable.js:498:62)
    at addChunk (/path/to/project/node_modules/readable-stream/lib/_stream_readable.js:298:29)
    at readableAddChunk (/path/to/project/node_modules/readable-stream/lib/_stream_readable.js:278:11)
    at DestroyableTransform.Readable.push (/path/to/project/node_modules/readable-stream/lib/_stream_readable.js:245:10)
    at DestroyableTransform.Transform.push (/path/to/project/node_modules/readable-stream/lib/_stream_transform.js:148:32)
    at DestroyableTransform.afterTransform (/path/to/project/node_modules/readable-stream/lib/_stream_transform.js:91:10)
    at DestroyableTransform.addSourcemap [as _transform] (/path/to/project/node_modules/vinyl-fs/lib/src/sourcemap.js:12:14)
    at DestroyableTransform.Transform._read (/path/to/project/node_modules/readable-stream/lib/_stream_transform.js:184:10)
    at DestroyableTransform.Transform._write (/path/to/project/node_modules/readable-stream/lib/_stream_transform.js:172:83)
    at doWrite (/path/to/project/node_modules/readable-stream/lib/_stream_writable.js:428:64)
    at writeOrBuffer (/path/to/project/node_modules/readable-stream/lib/_stream_writable.js:417:5)
    at DestroyableTransform.Writable.write (/path/to/project/node_modules/readable-stream/lib/_stream_writable.js:334:11)
    at DestroyableTransform.ondata (/path/to/project/node_modules/readable-stream/lib/_stream_readable.js:619:20)
    at emitOne (events.js:116:13)
    at DestroyableTransform.emit (events.js:211:7)
    at addChunk (/path/to/project/node_modules/readable-stream/lib/_stream_readable.js:291:12)
    at readableAddChunk (/path/to/project/node_modules/readable-stream/lib/_stream_readable.js:278:11)
    at DestroyableTransform.Readable.push (/path/to/project/node_modules/readable-stream/lib/_stream_readable.js:245:10)
    at DestroyableTransform.Transform.push (/path/to/project/node_modules/readable-stream/lib/_stream_transform.js:148:32)
    at DestroyableTransform.afterTransform (/path/to/project/node_modules/readable-stream/lib/_stream_transform.js:91:10)
    at onRead (/path/to/project/node_modules/vinyl-fs/lib/src/read-contents/index.js:45:14)
    at onReadFile (/path/to/project/node_modules/vinyl-fs/lib/src/read-contents/read-buffer.js:21:5)
    at /path/to/project/node_modules/graceful-fs/graceful-fs.js:78:16
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3)

This seems to be caused by the handlebars-helpers library, which must be modifying handlebars in an incompatible way.