-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
Steps:
- Follow guide here: https://react-styleguidist.js.org/docs/getting-started.html
- Install something that uses decorators (e.g., mobx/mobx-react).
- Add a testComponent that uses a decorator to /src/components
- Run
Repro Repo:
https://github.com/ambroselittle/styleguidist-test
Error I am seeing when running (npm run styleguide
) on latest macOS:
Failed to compile.
Error in ./src/components/testComponent.jsx
Syntax error: Unexpected token (4:0)
2 | import {observer} from 'mobx-react';
3 |
> 4 | @observer
| ^
5 | export default class TestComponent extends Component {
6 | render() {
7 | return (
@ ./~/react-styleguidist/loaders/styleguide-loader.js!./~/react-styleguidist/lib/index.js 25:30-129
@ ./~/react-styleguidist/lib/index.js
@ multi ./~/react-styleguidist/lib/index ./~/react-styleguidist/~/react-dev-utils/webpackHotDevClient.js