pocotan001 / react-styleguide-generator

Easily generate a good-looking styleguide by adding some documentation to your React project.
http://pocotan001.github.io/react-styleguide-generator
MIT License
700 stars 76 forks source link

require images #21

Open mattdell opened 8 years ago

mattdell commented 8 years ago

I'm trying to add react-styleguide-generator into my app but I keep getting the following error.

(apologies for the length but an example of my react code is after this snippet)

{
    "name": "rsg/rsg-lib",
    "hostname": "UK134489.local",
    "pid": 12778,
    "level": 50,
    "err": {
        "message": "Unexpected character '�'",
        "line": 1,
        "column": 1,
        "annotated": "\n/Users/mdell/Work/Repos/web/assets/images/pictureTile_delete.png:1\n�PNG\r\n^\nParseError: Unexpected character '�'",
        "stream": {
            "_readableState": {
                "highWaterMark": 16,
                "buffer": [],
                "length": 0,
                "pipes": {
                    "_readableState": {
                        "highWaterMark": 16,
                        "buffer": [],
                        "length": 0,
                        "pipes": {
                            "_readableState": {
                                "highWaterMark": 16,
                                "buffer": [],
                                "length": 0,
                                "pipes": {
                                    "_readableState": {
                                        "highWaterMark": 16,
                                        "buffer": [],
                                        "length": 0,
                                        "pipes": {
                                            "_readableState": {
                                                "highWaterMark": 16,
                                                "buffer": [],
                                                "length": 0,
                                                "pipes": {
                                                    "_readableState": {
                                                        "highWaterMark": 16,
                                                        "buffer": [],
                                                        "length": 0,
                                                        "pipes": {
                                                            "_readableState": {
                                                                "highWaterMark": 16,
                                                                "buffer": [],
                                                                "length": 0,
                                                                "pipes": {
                                                                    "_readableState": {
                                                                        "highWaterMark": 16,
                                                                        "buffer": [],
                                                                        "length": 0,
                                                                        "pipes": null,
                                                                        "pipesCount": 0,
                                                                        "flowing": null,
                                                                        "ended": false,
                                                                        "endEmitted": false,
                                                                        "reading": true,
                                                                        "sync": false,
                                                                        "needReadable": true,
                                                                        "emittedReadable": false,
                                                                        "readableListening": true,
                                                                        "objectMode": true,
                                                                        "defaultEncoding": "utf8",
                                                                        "ranOut": false,
                                                                        "awaitDrain": 0,
                                                                        "readingMore": false,
                                                                        "decoder": null,
                                                                        "encoding": null
                                                                    },
                                                                    "readable": true,
                                                                    "domain": null,
                                                                    "_events": {
                                                                        "end": [null, null],
                                                                        "finish": [null, null],
                                                                        "error": [null, null]
                                                                    },
                                                                    "_eventsCount": 8,
                                                                    "_writableState": {
                                                                        "highWaterMark": 16,
                                                                        "objectMode": true,
                                                                        "needDrain": false,
                                                                        "ending": false,
                                                                        "ended": false,
                                                                        "finished": false,
                                                                        "decodeStrings": true,
                                                                        "defaultEncoding": "utf8",
                                                                        "length": 0,
                                                                        "writing": false,
                                                                        "corked": 0,
                                                                        "sync": true,
                                                                        "bufferProcessing": false,
                                                                        "writecb": null,
                                                                        "writelen": 0,
                                                                        "buffer": [],
                                                                        "pendingcb": 0,
                                                                        "prefinished": false,
                                                                        "errorEmitted": false
                                                                    },
                                                                    "writable": true,
                                                                    "allowHalfOpen": true,
                                                                    "_options": {
                                                                        "objectMode": true
                                                                    },
                                                                    "_wrapOptions": {
                                                                        "objectMode": true
                                                                    },
                                                                    "_streams": [{
                                                                        "_readableState": {
                                                                            "highWaterMark": 16,
                                                                            "buffer": [],
                                                                            "length": 0,
                                                                            "pipes": null,
                                                                            "pipesCount": 0,
                                                                            "flowing": null,
                                                                            "ended": false,
                                                                            "endEmitted": false,
                                                                            "reading": true,
                                                                            "sync": false,
                                                                            "needReadable": true,
                                                                            "emittedReadable": false,
                                                                            "readableListening": true,
                                                                            "objectMode": true,
                                                                            "defaultEncoding": "utf8",
                                                                            "ranOut": false,
                                                                            "awaitDrain": 0,
                                                                            "readingMore": false,
                                                                            "decoder": null,
                                                                            "encoding": null
                                                                        },
                                                                        "readable": true,
                                                                        "domain": null,
                                                                        "_events": {
                                                                            "end": [null, null]
                                                                        },
                                                                        "_eventsCount": 3,
                                                                        "_writableState": {
                                                                            "highWaterMark": 16,
                                                                            "objectMode": true,
                                                                            "needDrain": false,
                                                                            "ending": false,
                                                                            "ended": false,
                                                                            "finished": false,
                                                                            "decodeStrings": true,
                                                                            "defaultEncoding": "utf8",
                                                                            "length": 0,
                                                                            "writing": false,
                                                                            "corked": 0,
                                                                            "sync": true,
                                                                            "bufferProcessing": false,
                                                                            "writecb": null,
                                                                            "writelen": 0,
                                                                            "buffer": [],
                                                                            "pendingcb": 0,
                                                                            "prefinished": false,
                                                                            "errorEmitted": false
                                                                        },
                                                                        "writable": true,
                                                                        "allowHalfOpen": true,
                                                                        "_transformState": {
                                                                            "needTransform": true,
                                                                            "transforming": false,
                                                                            "writecb": null,
                                                                            "writechunk": null
                                                                        }
                                                                    }],
                                                                    "length": 1,
                                                                    "label": "wrap"
                                                                },
                                                                "pipesCount": 1,
                                                                "flowing": true,
                                                                "ended": false,
                                                                "endEmitted": false,
                                                                "reading": true,
                                                                "sync": false,
                                                                "needReadable": true,
                                                                "emittedReadable": false,
                                                                "readableListening": false,
                                                                "objectMode": true,
                                                                "defaultEncoding": "utf8",
                                                                "ranOut": false,
                                                                "awaitDrain": 0,
                                                                "readingMore": false,
                                                                "decoder": null,
                                                                "encoding": null,
                                                                "resumeScheduled": false
                                                            },
                                                            "readable": true,
                                                            "domain": null,
                                                            "_events": {
                                                                "end": [null, null, null],
                                                                "finish": [null, null],
                                                                "error": [null, null]
                                                            },
                                                            "_eventsCount": 8,
                                                            "_writableState": {
                                                                "highWaterMark": 16,
                                                                "objectMode": true,
                                                                "needDrain": false,
                                                                "ending": false,
                                                                "ended": false,
                                                                "finished": false,
                                                                "decodeStrings": true,
                                                                "defaultEncoding": "utf8",
                                                                "length": 0,
                                                                "writing": false,
                                                                "corked": 0,
                                                                "sync": true,
                                                                "bufferProcessing": false,
                                                                "writecb": null,
                                                                "writelen": 0,
                                                                "buffer": [],
                                                                "pendingcb": 0,
                                                                "prefinished": false,
                                                                "errorEmitted": false
                                                            },
                                                            "writable": true,
                                                            "allowHalfOpen": true,
                                                            "_options": "[Circular]",
                                                            "_wrapOptions": {
                                                                "objectMode": true
                                                            },
                                                            "_streams": [{
                                                                "_readableState": {
                                                                    "highWaterMark": 16,
                                                                    "buffer": [],
                                                                    "length": 0,
                                                                    "pipes": null,
                                                                    "pipesCount": 0,
                                                                    "flowing": null,
                                                                    "ended": false,
                                                                    "endEmitted": false,
                                                                    "reading": true,
                                                                    "sync": false,
                                                                    "needReadable": true,
                                                                    "emittedReadable": false,
                                                                    "readableListening": true,
                                                                    "objectMode": true,
                                                                    "defaultEncoding": "utf8",
                                                                    "ranOut": false,
                                                                    "awaitDrain": 0,
                                                                    "readingMore": false,
                                                                    "decoder": null,
                                                                    "encoding": null
                                                                },
                                                                "readable": true,
                                                                "domain": null,
                                                                "_events": {
                                                                    "end": [null, null]
                                                                },
                                                                "_eventsCount": 4,
                                                                "_writableState": {
                                                                    "highWaterMark": 16,
                                                                    "objectMode": true,
                                                                    "needDrain": false,
                                                                    "ending": false,
                                                                    "ended": false,
                                                                    "finished": false,
                                                                    "decodeStrings": true,
                                                                    "defaultEncoding": "utf8",
                                                                    "length": 0,
                                                                    "writing": false,
                                                                    "corked": 0,
                                                                    "sync": true,
                                                                    "bufferProcessing": false,
                                                                    "writecb": null,
                                                                    "writelen": 0,
                                                                    "buffer": [],
                                                                    "pendingcb": 0,
                                                                    "prefinished": false,
                                                                    "errorEmitted": false
                                                                },
                                                                "writable": true,
                                                                "allowHalfOpen": true,
                                                                "_transformState": {
                                                                    "needTransform": true,
                                                                    "transforming": false,
                                                                    "writecb": null,
                                                                    "writechunk": null
                                                                },
                                                                "_destroyed": false
                                                            }],
                                                            "length": 1,
                                                            "label": "pack"
                                                        },
                                                        "pipesCount": 1,
                                                        "flowing": true,
                                                        "ended": false,
                                                        "endEmitted": false,
                                                        "reading": true,
                                                        "sync": false,
                                                        "needReadable": true,
                                                        "emittedReadable": false,
                                                        "readableListening": false,
                                                        "objectMode": true,
                                                        "defaultEncoding": "utf8",
                                                        "ranOut": false,
                                                        "awaitDrain": 0,
                                                        "readingMore": false,
                                                        "decoder": null,
                                                        "encoding": null,
                                                        "resumeScheduled": false
                                                    },
                                                    "readable": true,
                                                    "domain": null,
                                                    "_events": {
                                                        "end": [null, null, null],
                                                        "finish": [null, null],
                                                        "error": [null, null]
                                                    },
                                                    "_eventsCount": 8,
                                                    "_writableState": {
                                                        "highWaterMark": 16,
                                                        "objectMode": true,
                                                        "needDrain": false,
                                                        "ending": false,
                                                        "ended": false,
                                                        "finished": false,
                                                        "decodeStrings": true,
                                                        "defaultEncoding": "utf8",
                                                        "length": 0,
                                                        "writing": false,
                                                        "corked": 0,
                                                        "sync": true,
                                                        "bufferProcessing": false,
                                                        "writecb": null,
                                                        "writelen": 0,
                                                        "buffer": [],
                                                        "pendingcb": 0,
                                                        "prefinished": false,
                                                        "errorEmitted": false
                                                    },
                                                    "writable": true,
                                                    "allowHalfOpen": true,
                                                    "_options": "[Circular]",
                                                    "_wrapOptions": {
                                                        "objectMode": true
                                                    },
                                                    "_streams": [{
                                                        "_readableState": {
                                                            "highWaterMark": 16,
                                                            "buffer": [],
                                                            "length": 0,
                                                            "pipes": null,
                                                            "pipesCount": 0,
                                                            "flowing": null,
                                                            "ended": false,
                                                            "endEmitted": false,
                                                            "reading": true,
                                                            "sync": false,
                                                            "needReadable": true,
                                                            "emittedReadable": false,
                                                            "readableListening": true,
                                                            "objectMode": true,
                                                            "defaultEncoding": "utf8",
                                                            "ranOut": false,
                                                            "awaitDrain": 0,
                                                            "readingMore": false,
                                                            "decoder": null,
                                                            "encoding": null
                                                        },
                                                        "readable": true,
                                                        "domain": null,
                                                        "_events": {
                                                            "end": [null, null]
                                                        },
                                                        "_eventsCount": 4,
                                                        "_writableState": {
                                                            "highWaterMark": 16,
                                                            "objectMode": true,
                                                            "needDrain": false,
                                                            "ending": false,
                                                            "ended": false,
                                                            "finished": false,
                                                            "decodeStrings": true,
                                                            "defaultEncoding": "utf8",
                                                            "length": 0,
                                                            "writing": false,
                                                            "corked": 0,
                                                            "sync": true,
                                                            "bufferProcessing": false,
                                                            "writecb": null,
                                                            "writelen": 0,
                                                            "buffer": [],
                                                            "pendingcb": 0,
                                                            "prefinished": false,
                                                            "errorEmitted": false
                                                        },
                                                        "writable": true,
                                                        "allowHalfOpen": true,
                                                        "_transformState": {
                                                            "needTransform": true,
                                                            "transforming": false,
                                                            "writecb": null,
                                                            "writechunk": null
                                                        },
                                                        "_destroyed": false
                                                    }],
                                                    "length": 1,
                                                    "label": "debug"
                                                },
                                                "pipesCount": 1,
                                                "flowing": true,
                                                "ended": false,
                                                "endEmitted": false,
                                                "reading": true,
                                                "sync": false,
                                                "needReadable": true,
                                                "emittedReadable": false,
                                                "readableListening": false,
                                                "objectMode": true,
                                                "defaultEncoding": "utf8",
                                                "ranOut": false,
                                                "awaitDrain": 0,
                                                "readingMore": false,
                                                "decoder": null,
                                                "encoding": null,
                                                "resumeScheduled": false
                                            },
                                            "readable": true,
                                            "domain": null,
                                            "_events": {
                                                "end": [null, null, null],
                                                "finish": [null, null],
                                                "error": [null, null]
                                            },
                                            "_eventsCount": 8,
                                            "_writableState": {
                                                "highWaterMark": 16,
                                                "objectMode": true,
                                                "needDrain": false,
                                                "ending": false,
                                                "ended": false,
                                                "finished": false,
                                                "decodeStrings": true,
                                                "defaultEncoding": "utf8",
                                                "length": 0,
                                                "writing": false,
                                                "corked": 0,
                                                "sync": true,
                                                "bufferProcessing": false,
                                                "writecb": null,
                                                "writelen": 0,
                                                "buffer": [],
                                                "pendingcb": 0,
                                                "prefinished": false,
                                                "errorEmitted": false
                                            },
                                            "writable": true,
                                            "allowHalfOpen": true,
                                            "_options": "[Circular]",
                                            "_wrapOptions": {
                                                "objectMode": true
                                            },
                                            "_streams": [{
                                                "_readableState": {
                                                    "highWaterMark": 16,
                                                    "buffer": [],
                                                    "length": 0,
                                                    "pipes": null,
                                                    "pipesCount": 0,
                                                    "flowing": null,
                                                    "ended": false,
                                                    "endEmitted": false,
                                                    "reading": true,
                                                    "sync": false,
                                                    "needReadable": true,
                                                    "emittedReadable": false,
                                                    "readableListening": true,
                                                    "objectMode": true,
                                                    "defaultEncoding": "utf8",
                                                    "ranOut": false,
                                                    "awaitDrain": 0,
                                                    "readingMore": false,
                                                    "decoder": null,
                                                    "encoding": null
                                                },
                                                "readable": true,
                                                "domain": null,
                                                "_events": {
                                                    "end": [null, null]
                                                },
                                                "_eventsCount": 4,
                                                "_writableState": {
                                                    "highWaterMark": 16,
                                                    "objectMode": true,
                                                    "needDrain": false,
                                                    "ending": false,
                                                    "ended": false,
                                                    "finished": false,
                                                    "decodeStrings": true,
                                                    "defaultEncoding": "utf8",
                                                    "length": 0,
                                                    "writing": false,
                                                    "corked": 0,
                                                    "sync": true,
                                                    "bufferProcessing": false,
                                                    "writecb": null,
                                                    "writelen": 0,
                                                    "buffer": [],
                                                    "pendingcb": 0,
                                                    "prefinished": false,
                                                    "errorEmitted": false
                                                },
                                                "writable": true,
                                                "allowHalfOpen": true,
                                                "_transformState": {
                                                    "needTransform": true,
                                                    "transforming": false,
                                                    "writecb": null,
                                                    "writechunk": null
                                                },
                                                "_destroyed": false
                                            }],
                                            "length": 1,
                                            "label": "emit-deps"
                                        },
                                        "pipesCount": 1,
                                        "flowing": true,
                                        "ended": false,
                                        "endEmitted": false,
                                        "reading": true,
                                        "sync": false,
                                        "needReadable": true,
                                        "emittedReadable": false,
                                        "readableListening": false,
                                        "objectMode": true,
                                        "defaultEncoding": "utf8",
                                        "ranOut": false,
                                        "awaitDrain": 0,
                                        "readingMore": false,
                                        "decoder": null,
                                        "encoding": null,
                                        "resumeScheduled": false
                                    },
                                    "readable": true,
                                    "domain": null,
                                    "_events": {
                                        "end": [null, null, null],
                                        "finish": [null, null],
                                        "error": [null, null]
                                    },
                                    "_eventsCount": 8,
                                    "_writableState": {
                                        "highWaterMark": 16,
                                        "objectMode": true,
                                        "needDrain": false,
                                        "ending": false,
                                        "ended": false,
                                        "finished": false,
                                        "decodeStrings": true,
                                        "defaultEncoding": "utf8",
                                        "length": 0,
                                        "writing": false,
                                        "corked": 0,
                                        "sync": true,
                                        "bufferProcessing": false,
                                        "writecb": null,
                                        "writelen": 0,
                                        "buffer": [],
                                        "pendingcb": 0,
                                        "prefinished": false,
                                        "errorEmitted": false
                                    },
                                    "writable": true,
                                    "allowHalfOpen": true,
                                    "_options": "[Circular]",
                                    "_wrapOptions": {
                                        "objectMode": true
                                    },
                                    "_streams": [{
                                        "_readableState": {
                                            "highWaterMark": 16,
                                            "buffer": [],
                                            "length": 0,
                                            "pipes": null,
                                            "pipesCount": 0,
                                            "flowing": null,
                                            "ended": false,
                                            "endEmitted": false,
                                            "reading": true,
                                            "sync": false,
                                            "needReadable": true,
                                            "emittedReadable": false,
                                            "readableListening": true,
                                            "objectMode": true,
                                            "defaultEncoding": "utf8",
                                            "ranOut": false,
                                            "awaitDrain": 0,
                                            "readingMore": false,
                                            "decoder": null,
                                            "encoding": null
                                        },
                                        "readable": true,
                                        "domain": null,
                                        "_events": {
                                            "end": [null, null]
                                        },
                                        "_eventsCount": 4,
                                        "_writableState": {
                                            "highWaterMark": 16,
                                            "objectMode": true,
                                            "needDrain": false,
                                            "ending": false,
                                            "ended": false,
                                            "finished": false,
                                            "decodeStrings": true,
                                            "defaultEncoding": "utf8",
                                            "length": 0,
                                            "writing": false,
                                            "corked": 0,
                                            "sync": true,
                                            "bufferProcessing": false,
                                            "writecb": null,
                                            "writelen": 0,
                                            "buffer": [],
                                            "pendingcb": 0,
                                            "prefinished": false,
                                            "errorEmitted": false
                                        },
                                        "writable": true,
                                        "allowHalfOpen": true,
                                        "_transformState": {
                                            "needTransform": true,
                                            "transforming": false,
                                            "writecb": null,
                                            "writechunk": null
                                        },
                                        "_destroyed": false
                                    }],
                                    "length": 1,
                                    "label": "label"
                                },
                                "pipesCount": 1,
                                "flowing": true,
                                "ended": false,
                                "endEmitted": false,
                                "reading": true,
                                "sync": false,
                                "needReadable": true,
                                "emittedReadable": false,
                                "readableListening": false,
                                "objectMode": true,
                                "defaultEncoding": "utf8",
                                "ranOut": false,
                                "awaitDrain": 0,
                                "readingMore": false,
                                "decoder": null,
                                "encoding": null,
                                "resumeScheduled": false
                            },
                            "readable": true,
                            "domain": null,
                            "_events": {
                                "end": [null, null, null],
                                "finish": [null, null],
                                "error": [null, null]
                            },
                            "_eventsCount": 8,
                            "_writableState": {
                                "highWaterMark": 16,
                                "objectMode": true,
                                "needDrain": false,
                                "ending": false,
                                "ended": false,
                                "finished": false,
                                "decodeStrings": true,
                                "defaultEncoding": "utf8",
                                "length": 0,
                                "writing": false,
                                "corked": 0,
                                "sync": true,
                                "bufferProcessing": false,
                                "writecb": null,
                                "writelen": 0,
                                "buffer": [],
                                "pendingcb": 0,
                                "prefinished": false,
                                "errorEmitted": false
                            },
                            "writable": true,
                            "allowHalfOpen": true,
                            "_options": "[Circular]",
                            "_wrapOptions": {
                                "objectMode": true
                            },
                            "_streams": [{
                                "_readableState": {
                                    "highWaterMark": 16,
                                    "buffer": [],
                                    "length": 0,
                                    "pipes": null,
                                    "pipesCount": 0,
                                    "flowing": null,
                                    "ended": false,
                                    "endEmitted": false,
                                    "reading": true,
                                    "sync": false,
                                    "needReadable": true,
                                    "emittedReadable": false,
                                    "readableListening": true,
                                    "objectMode": true,
                                    "defaultEncoding": "utf8",
                                    "ranOut": false,
                                    "awaitDrain": 0,
                                    "readingMore": false,
                                    "decoder": null,
                                    "encoding": null
                                },
                                "readable": true,
                                "domain": null,
                                "_events": {
                                    "end": [null, null]
                                },
                                "_eventsCount": 4,
                                "_writableState": {
                                    "highWaterMark": 16,
                                    "objectMode": true,
                                    "needDrain": false,
                                    "ending": false,
                                    "ended": false,
                                    "finished": false,
                                    "decodeStrings": true,
                                    "defaultEncoding": "utf8",
                                    "length": 0,
                                    "writing": false,
                                    "corked": 0,
                                    "sync": true,
                                    "bufferProcessing": false,
                                    "writecb": null,
                                    "writelen": 0,
                                    "buffer": [],
                                    "pendingcb": 0,
                                    "prefinished": false,
                                    "errorEmitted": false
                                },
                                "writable": true,
                                "allowHalfOpen": true,
                                "_transformState": {
                                    "needTransform": true,
                                    "transforming": false,
                                    "writecb": null,
                                    "writechunk": null
                                },
                                "_destroyed": false
                            }],
                            "length": 1,
                            "label": "dedupe"
                        },
                        "pipesCount": 1,
                        "flowing": true,
                        "ended": false,
                        "endEmitted": false,
                        "reading": true,
                        "sync": false,
                        "needReadable": true,
                        "emittedReadable": false,
                        "readableListening": false,
                        "objectMode": true,
                        "defaultEncoding": "utf8",
                        "ranOut": false,
                        "awaitDrain": 0,
                        "readingMore": false,
                        "decoder": null,
                        "encoding": null,
                        "resumeScheduled": false
                    },
                    "readable": true,
                    "domain": null,
                    "_events": {
                        "end": [null, null, null],
                        "finish": [null, null],
                        "error": [null, null]
                    },
                    "_eventsCount": 8,
                    "_writableState": {
                        "highWaterMark": 16,
                        "objectMode": true,
                        "needDrain": false,
                        "ending": false,
                        "ended": false,
                        "finished": false,
                        "decodeStrings": true,
                        "defaultEncoding": "utf8",
                        "length": 0,
                        "writing": false,
                        "corked": 0,
                        "sync": false,
                        "bufferProcessing": false,
                        "writecb": null,
                        "writelen": 0,
                        "buffer": [],
                        "pendingcb": 0,
                        "prefinished": false,
                        "errorEmitted": false
                    },
                    "writable": true,
                    "allowHalfOpen": true,
                    "_options": "[Circular]",
                    "_wrapOptions": {
                        "objectMode": true
                    },
                    "_streams": [{
                        "_readableState": {
                            "highWaterMark": 16,
                            "buffer": [],
                            "length": 0,
                            "pipes": null,
                            "pipesCount": 0,
                            "flowing": null,
                            "ended": false,
                            "endEmitted": false,
                            "reading": false,
                            "sync": false,
                            "needReadable": true,
                            "emittedReadable": false,
                            "readableListening": true,
                            "objectMode": true,
                            "defaultEncoding": "utf8",
                            "ranOut": false,
                            "awaitDrain": 0,
                            "readingMore": false,
                            "decoder": null,
                            "encoding": null
                        },
                        "readable": true,
                        "domain": null,
                        "_events": {
                            "end": [null, null]
                        },
                        "_eventsCount": 4,
                        "_writableState": {
                            "highWaterMark": 16,
                            "objectMode": true,
                            "needDrain": false,
                            "ending": false,
                            "ended": false,
                            "finished": false,
                            "decodeStrings": true,
                            "defaultEncoding": "utf8",
                            "length": 0,
                            "writing": false,
                            "corked": 0,
                            "sync": true,
                            "bufferProcessing": false,
                            "writecb": null,
                            "writelen": 0,
                            "buffer": [],
                            "pendingcb": 0,
                            "prefinished": false,
                            "errorEmitted": false
                        },
                        "writable": true,
                        "allowHalfOpen": true,
                        "_transformState": {
                            "needTransform": true,
                            "transforming": false,
                            "writecb": null,
                            "writechunk": null,
                            "writeencoding": "utf8"
                        },
                        "_destroyed": false
                    }],
                    "length": 1,
                    "label": "sort"
                },
                "pipesCount": 1,
                "flowing": true,
                "ended": false,
                "endEmitted": false,
                "reading": true,
                "sync": false,
                "needReadable": true,
                "emittedReadable": false,
                "readableListening": false,
                "objectMode": true,
                "defaultEncoding": "utf8",
                "ranOut": false,
                "awaitDrain": 0,
                "readingMore": false,
                "decoder": null,
                "encoding": null,
                "resumeScheduled": false
            },
            "readable": true,
            "domain": null,
            "_events": {
                "end": [null, null, null],
                "finish": [null],
                "error": [null]
            },
            "_eventsCount": 5,
            "_writableState": {
                "highWaterMark": 16,
                "objectMode": true,
                "needDrain": false,
                "ending": false,
                "ended": false,
                "finished": false,
                "decodeStrings": true,
                "defaultEncoding": "utf8",
                "length": 1,
                "writing": true,
                "corked": 0,
                "sync": false,
                "bufferProcessing": false,
                "writelen": 1,
                "buffer": [],
                "pendingcb": 1,
                "prefinished": false,
                "errorEmitted": false
            },
            "writable": true,
            "allowHalfOpen": true,
            "_options": "[Circular]",
            "_wrapOptions": {
                "objectMode": true
            },
            "_streams": [{
                "_readableState": {
                    "highWaterMark": 16,
                    "buffer": [],
                    "length": 0,
                    "pipes": null,
                    "pipesCount": 0,
                    "flowing": null,
                    "ended": false,
                    "endEmitted": false,
                    "reading": true,
                    "sync": false,
                    "needReadable": true,
                    "emittedReadable": false,
                    "readableListening": true,
                    "objectMode": true,
                    "defaultEncoding": "utf8",
                    "ranOut": false,
                    "awaitDrain": 0,
                    "readingMore": false,
                    "decoder": null,
                    "encoding": null
                },
                "readable": true,
                "domain": null,
                "_events": {
                    "end": [null, null]
                },
                "_eventsCount": 4,
                "_writableState": {
                    "highWaterMark": 16,
                    "objectMode": true,
                    "needDrain": false,
                    "ending": false,
                    "ended": false,
                    "finished": false,
                    "decodeStrings": true,
                    "defaultEncoding": "utf8",
                    "length": 0,
                    "writing": false,
                    "corked": 0,
                    "sync": true,
                    "bufferProcessing": false,
                    "writecb": null,
                    "writelen": 0,
                    "buffer": [],
                    "pendingcb": 0,
                    "prefinished": false,
                    "errorEmitted": false
                },
                "writable": true,
                "allowHalfOpen": true,
                "_transformState": {
                    "needTransform": true,
                    "transforming": true,
                    "writechunk": {
                        "id": "/Users/mdell/Work/Repos/web/assets/images/pictureTile_delete.png",
                        "source": "�PNG\r\n\u001a\n\u0000\u0000\u0000\rIHDR\u0000\u0000\u0000\u001c\u0000\u0000\u0000\u001c\b\u0006\u0000\u0000\u0000r\rߔ\u0000\u0000\u0000\u0004gAMA\u0000\u0000��\u000b�a\u0005\u0000\u0000\u0001\u0015IDATH\r�VQ\u000e� \f%�\u0018���v\u000f�\t���sb�Hm;BlR���\u001e\u0015�\u0010�u}�\u0017�\f����s���+��A�\u000f\u0006S/Mp=��L�P����E\u0014��\u00185f\nFx�\n�[��\u0014�31j��\f�i\u0017��0W�@��ԉ�\u0006�9̀L܍�\u0000=�l��\u0007I�\u000f@Yr\u000b�:�\u0010irj^1�\b�9��j\u0012ĭ��ڻ�:\u001a���a��-D�\u0000�g\u0007��&�GM|�X��\u0015�LU�E�lܡ��پm�Hsb\u0005�I\r�&��_|�\u0010Yr\u000b�\u0014x\b<�M�\r\u0004ڌ5\u0003�/��j\u000eubF�\u001a^r!!�y�s���A����?��8�\"<���\u0005�U��\\V\u0000T\u0000\u0000\u0000\u0000IEND�B`�",
                        "deps": {},
                        "file": "/Users/mdell/Work/Repos/web/assets/images/pictureTile_delete.png"
                    },
                    "writeencoding": "utf8"
                },
                "_destroyed": false
            }],
            "length": 1,
            "label": "syntax"
        }
    },
    "msg": "Unexpected character '�'",
    "time": "2016-01-16T21:47:48.214Z",
    "v": 0
}

My assumption is this is happening because I am using require for images which is then being picked up somewhere during compilation.

Here is the render method where it is being used:

    render() {
        return (
            <div>
                <div className={this.state.hideOrShowCookieMsg}>
                        <div className='btn-close' value='close' onClick={::this._hidePolicyMsg}>
                            <span>
                                <img src={require('../../../assets/images/pictureTile_delete.png')}/>
                            </span>
                        </div>
                        <div className='container'>
                            <h2 className='header-alert-title'>{_.get(this.props.content, 'cookiePolicyMessage.title')}</h2>
                            {HtmlUtils.htmlToReact(_.get(this.props.content, 'cookiePolicyMessage.content'))}
                        </div>
                    </div>
            </div>
        );
    }

Am I missing a config option or something that can help this?

texttechne commented 8 years ago

This project can only be used with browserify builds... Are you using webpack? Or how do you require images via browserify?

mattdell commented 8 years ago

Ah, I am using webpack...

texttechne commented 8 years ago

there is another project: https://github.com/theogravity/react-styleguide-generator-alt

mattdell commented 8 years ago

That looks promising! Thanks for the heads up.