-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storybook Won't Compile - React Syntax Highlighter Loader Issue #10027
Comments
+1 |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
+1 |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook! |
Describe the bug
I have a React/Redux application using TypeScript with a custom Webpack config (not CRA). I'm using ts-loader and not babel as the loader for TypeScript.
Following the instructions for both automatic setup, and also manual setup for Storybook
v5.3.14
, when I runnpm run storybook
I'm getting a ModuleParseError saying that I don't have an appropriate loader to loadreact-syntax-highlighter
, which Storybook itself is importing. (See the code snippet bellow).I found some issues (and PRs) that seem to be related. It looks like a fix may have been introduced in a recent alpha build of v6.0.0,
6.0.0-alpha.20
. However, even after specifying that version of Storybook I'm still experiencing the same issue.FWIW, when I downgrade to
v5.2.8
I am able to get Storybook to compile properly.Related Issues
To Reproduce
Steps to reproduce the behavior:
ts-loader
instead of babel to compile the code..storybook/main.js
file per the code snippet below.storybook
command topackage.json
that isstart-storybook -p 6006
stories/0-Welcome.stories.tsx
Expected behavior
Storybook should compile properly and open.
Screenshots
See code snippet below instead.
Code snippets
// .storybook/main.js
System:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: