When calling YAML.safeLoad(content) without a second argument (options), I get this error:
/foobar/node_modules/js-yaml/lib/js-yaml/common.js:50
var index, length, key, sourceKeys = Object.keys(source);
^
TypeError: Object.keys called on non-object
at Function.keys (native)
Passing an empty object literal ({}) fixes the problem but looks out of place.
$ npm ls js-yaml
/foobar
+-- [email protected]
When calling YAML.safeLoad(content) without a second argument (options), I get this error:
Passing an empty object literal ({}) fixes the problem but looks out of place.