-
Notifications
You must be signed in to change notification settings - Fork 508
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 not working on latest TSDX installation #1179
Comments
Not sure if it's the same issue as you are having but I had the following error when trying to run the storybook script: Turns out they have made some breaking changes in Storybook v7 and TSDX seems to automatically install v7 when you create a new project with it. My solution was simply downgrading the storybook to the one I had on another project.
|
In addition to the @palatinus-sb answer, I managed to use Storybook 7
|
After fighting this for about a day, I was able to get things to work by changing const babel = require('@rollup/plugin-babel');
const terser = require('rollup-plugin-terser');
module.exports = {
rollup(config) {
const basePlugins = config.plugins
.filter(Boolean)
.filter((config) => config.name !== 'babel')
.filter((config) => config.name !== 'terser');
config.plugins = [...basePlugins, babel(), terser.terser()];
return config;
},
}; |
I found that running |
I solved this problem in 3 steps:
|
I found this error when i try to run the storybook.
|
I also got the above error, anyone know a fix? |
Try deleting node_modules and lock files and reinstall. That solved for me. |
You can try this repo
|
Current Behavior
I have recently installed the latest version of TSDX and encountered an issue with Storybook integration. It appears that there might be a problem with either the TypeScript configuration or a lack of updates to accommodate the latest version.
When attempting to set up Storybook with TSDX, I followed the usual steps, but encountered unexpected errors and inconsistencies. I have verified that I am using the latest versions of both TSDX and Storybook.
Expected behavior
Storybook should run successfully, allowing me to view and interact with my components.
Additional context
Please let me know if you need any additional information or steps to reproduce the problem. Thank you for your attention to this matter.
The text was updated successfully, but these errors were encountered: