question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Storybook wont start with given startup instructions

See original GitHub issue

Griddle version

1.4.0

Expected Behavior

Storybook server starts

Actual Behavior

ERROR in ./stories/index.tsx
Module build failed: SyntaxError: Unexpected token (62:60)

  60 |     return fakeData_1["default"].slice(start, start + 10);
  61 | }
> 62 | var GreenLeftSortIconComponent = function (props) { return (<span style={{ color: "#00ff00" }}>
     |                                                             ^
  63 |     {props.icon && <span>{props.icon}</span>}
  64 |     {props.title}
  65 |   </span>); };

 @ ./.storybook/config.js 4:2-23

Steps to reproduce

  • Fork Repo
  • npm install
  • npm run storybook

Pull request with failing test or storybook story with issue

While this step is not necessary, a failing test(s) and/or a storybook story will help us resolve the issue much more easily. Please see the README for more information.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
dahlbykcommented, May 2, 2017

Ah, the change is by design: https://github.com/Microsoft/TypeScript/issues/15409#issuecomment-297765710. PR incoming with that fix.

0reactions
followblcommented, May 3, 2017

@dahlbyk thanks for the fix!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Storybook fails to launch · Issue #10164
Any help given will be greatly appreciated. To Reproduce Steps to reproduce the behavior: Go to the package folder; Type npm run storybook...
Read more >
Setup Storybook - JS.ORG
Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and...
Read more >
Install Storybook
Storybook needs to be installed into a project that is already set up with a framework. It will not work on an empty...
Read more >
Configure Storybook
Configure your Storybook project. The main configuration file is main.js . This file controls the Storybook server's behavior, so you must restart ......
Read more >
Frequently Asked Questions - Storybook - JS.ORG
Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found