Skip to content

Unexpected token : #450

@davidsims9t

Description

@davidsims9t

I'm getting an error in my readme file where JSON is presumably not recognized/loaded. The error is:

SyntaxError: Unexpected token (3:10)
1 <BasicCard cards={[
2 :   {
3 :     "type": "text",

My style guide config looks like:

module.exports = {
  components: 'src/@(bands|modules|components)/*.js',
  webpackConfig: require('./webpack.config.client.js'),
  getExampleFilename(componentPath) {
    return componentPath.replace('src', 'examples').replace(/\.jsx?$/, '.md');
  }
};

I'm using Webpack 2.2.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions