seek-oss / seek-style-guide

Living style guide for SEEK, powered by React, webpack, CSS Modules and Less.
https://seek-oss.github.io/seek-style-guide/
MIT License
307 stars 46 forks source link

Module parse failed: Unexpected token in Button.js #389

Closed Goaty89 closed 6 years ago

Goaty89 commented 6 years ago

Try to install this in a whole new createReactApp. It does not work expected. What is the Button.js expected module need?

`/node_modules/seek-style-guide/react/Button/Button.js Module parse failed: Unexpected token (10:21) You may need an appropriate loader to handle this file type. export default class Button extends Component { static displayName = 'Button';
static propTypes = {`
markdalgleish commented 6 years ago

This package doesn't work with create-react-app because you need to modify your webpack config to support it, and create-react-app abstracts webpack away from you. You can eject and integrate manually using seek-style-guide-webpack, or you could look at using sku instead.

markdalgleish commented 6 years ago

What brings you here, by the way? What are you trying to build? 😄