storybook: build-storybook failing: Unexpected token: name (Service)

Whenever I try to build my project with build-storybook, I get the following error:

~\coding\snowflake\js\snowflake-react-boilerplate [remoting] *$ >
❯ yarn build-storybook
yarn build-storybook v0.24.5
$ cross-env NODE_PATH=src build-storybook -s public
@storybook/react v3.1.7

=> Loading custom addons config.
=> Using default webpack setup based on "Create React App".
=> Copying static files from: public
Building storybook ...
Failed to build the storybook
static/preview.50ad2797cb6bb85ec544.bundle.js from UglifyJs
Unexpected token: name (Service) [static/preview.50ad2797cb6bb85ec544.bundle.js:102557,6]
error Command failed with exit code 1.

Here is my repo for repro

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 3
  • Comments: 17 (10 by maintainers)

Commits related to this issue

Most upvoted comments

3.1.6 is the latest working version for storybook-build for me. I can repro the issue in 3.1.7, 3.1.8 and 3.1.9

I downgraded too a couple versions and get it working back. Will try to do more precise isolation when I get a bit of time.

The issue has been open for a while: https://github.com/storybooks/storybook/issues/1731

Does anyone want to take a stab at making it work?