Coder Social home page Coder Social logo

Comments (3)

edhgoose avatar edhgoose commented on August 18, 2024

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.

fi3ework avatar fi3ework commented on August 18, 2024

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.

matteom-synth avatar matteom-synth commented on August 18, 2024

๐Ÿ‘‹ 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.