Comments (3)
A few more debug details to try and help:
I've tried upgrading to Storybook 8 - no luck with that.
I've tried running the below, with the following minimal config file:
import { StorybookConfig } from "storybook-react-rsbuild";
import { dirname, join } from "path";
const getAbsolutePath = (value: string): any => {
return dirname(require.resolve(join(value, "package.json")));
};
const config: StorybookConfig = {
framework: {
name: getAbsolutePath("storybook-react-rsbuild"),
options: {
builder: {
rsbuildConfigPath: "./config/rsbuild/rsbuild.config.ts",
},
},
},
stories: [
"/Users/ed.hartwellgoose/my-company/a/specific/story.stories.tsx",
],
addons: [
],
};
export default config;
/opt/homebrew/Cellar/node@18/18.19.0/bin/node /Users/ed.hartwellgoose/my-company/node_modules/storybook/index.js dev --debug --loglevel silly
And I get:
@storybook/cli v8.1.6
info => Starting manager..
info => Starting preview..
info Addon-docs: using MDX3
warn Rsbuild plugin "rsbuild:less" registered multiple times.
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ Storybook 8.1.6 for /Users/ed.hartwellgoose/my-company/node_modules/storybook-react-rsbuild started โ
โ 655 ms for manager and 1.69 s for preview โ
โ โ
โ Local: http://localhost:50830/ โ
โ On your network: http://192.168.0.42:50830/ โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
start Compiling...
info Using tsconfig paths for react-docgen
I've tried to also use: DEBUG=rsbuild
, and one thing which is interesting is that we get: debug 23:18:49 Use Rspack v0.6.5
:
@storybook/cli v8.1.6
info => Starting manager..
info => Starting preview..
info Addon-docs: using MDX3
debug 23:18:47 add default plugins
debug 23:18:48 add default plugins done
warn Rsbuild plugin "rsbuild:less" registered multiple times.
debug 23:18:48 init plugins
debug 23:18:48 init plugins done
debug 23:18:48 modify Rsbuild config
debug 23:18:48 modify Rsbuild config done
debug 23:18:48 create dev server
debug 23:18:48 modify bundler chain
debug 23:18:49 modify bundler chain done
debug 23:18:49 modify Rspack config
debug 23:18:49 modify Rspack config done
debug 23:18:49 create compiler
debug 23:18:49 create compiler done
debug 23:18:49 create dev server done
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ Storybook 8.1.6 for /Users/ed.hartwellgoose/my-company/node_modules/storybook-react-rsbuild started โ
โ 180 ms for manager and 2.07 s for preview โ
โ โ
โ Local: http://localhost:64347/ โ
โ On your network: http://192.168.0.42:64347/ โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
debug 23:18:49 Use Rspack v0.6.5
start Compiling...
error Compile error:
I've tried cutting the config down as much as possible in rsbuild as well, but not having any luck :(
from storybook-rsbuild.
You could try running DEBUG=rsbuild pnpm build:storybook
then in the debug log you'll find something like
- Rsbuild Config: /Users/bytedance/Projects/storybook-rsbuild/sandboxes/react-rsbuild/storybook-static/rsbuild.config.mjs
- Rspack Config (web): /Users/bytedance/Projects/storybook-rsbuild/sandboxes/react-rsbuild/storybook-static/rspack.config.web.mjs
You can attach the content here.
from storybook-rsbuild.
๐ Same issue here. It gets stuck like this when running Storybook (v8) with DEBUG=rsbuild
(same config works fine with Webpack + SWC):
ยป DEBUG=rsbuild pnpm storybook
> @[email protected] storybook /Users/matteo.mazzarolo/workspace/example/apps/studio
> storybook dev --port 6006
@storybook/cli v8.1.6
WARN The "@storybook/addon-mdx-gfm" addon is meant as a migration assistant for Storybook 8.0; and will likely be removed in a future version.
WARN It's recommended you read this document:
WARN https://storybook.js.org/docs/writing-docs/mdx#markdown-tables-arent-rendering-correctly
WARN
WARN Once you've made the necessary changes, you can remove the addon from your package.json and storybook config.
info => Serving static files from ././public at /
info => Starting manager..
info => Starting preview..
info Addon-docs: using MDX3
debug 11:11:16 add default plugins
debug 11:11:16 add default plugins done
debug 11:11:16 init plugins
debug 11:11:16 init plugins done
debug 11:11:16 modify Rsbuild config
debug 11:11:16 modify Rsbuild config done
debug 11:11:16 create dev server
debug 11:11:16 modify bundler chain
debug 11:11:16 modify bundler chain done
debug 11:11:16 modify Rspack config
debug 11:11:16 modify Rspack config done
debug 11:11:16 create compiler
debug 11:11:16 create compiler done
debug 11:11:16 create dev server done
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ Storybook 8.1.6 for storybook-react-rsbuild started โ
โ 537 ms for manager and 724 ms for preview โ
โ โ
โ Local: http://localhost:6006/ โ
โ On your network: http://192.168.1.165:6006/ โ
โ โ
โ A new version (8.1.9) is available! โ
โ โ
โ Upgrade now: npx storybook@latest upgrade โ
โ โ
โ Read full changelog: https://github.com/storybookjs/storybook/blob/main/CHANGELOG.md โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
debug 11:11:16 Use Rspack v0.6.5
start Compiling...
info Using tsconfig paths for react-docgen
from storybook-rsbuild.
Related Issues (20)
- Not working on Linux HOT 2
- Support Nx HOT 2
- Support for React <18 HOT 5
- Broken with [email protected] HOT 11
- error binding.JsResolverFactory is not a constructor HOT 4
- Compilation error "JavaScript parsing error: Expected ';', got 'assert'" HOT 7
- Very long compilation time and error "Conflict: Multiple assets emit different content to the same filename iframe.html" when source.entry is set in rsbuild config HOT 19
- Error: [html-rspack-plugin]: Child compilation failed HOT 2
- `Conflict: Multiple assets emit different content to the same filename iframe.html` when using custom `source.entry` HOT 3
- Creating new stories and saving stories in UI is not currently supported? HOT 6
- compatibility with storybook-addon-manual-mocks HOT 9
- react-docgen-typescript support? HOT 1
- Cannot find module error with `stories: ['../**/*.stories.ts']`
- Built SB has odd selectors that is being applied HOT 4
- How to use rspack.config.js configuration? HOT 2
- Can't resolve deps with @rsbuild/core 1.0.1-beta.10 HOT 1
- `public/index.html` gets copied instead of the Storybook template when building HOT 6
- CSS imported assets are bundled twice HOT 3
- v0.0.12 breaks dev HOT 11
- Asset loading in CSS doesn't work in dev HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from storybook-rsbuild.