Skip to content

MillionLint seems to break storybook, at least with redwoodjs #1163

@michalgm

Description

@michalgm

What version of million are you using?

1.0.14

Are you using an SSR adapter? If so, which one?

none

What package manager are you using?

yarn

What operating system are you using?

Linux

What browser are you using?

Chrome

Describe the Bug

This may be too specific to worry about, but I just spent a bunch of time debugging why my storybook was no longer running, and it turned out that the culprit was including @milllion/lint in my vite config. I didn't even have it in my plugins list, just importing the library was enough to make it fail.
The specific issue was that the storybook page was 404-ing trying to load http://localhost:7910/sb-addons/essentials-toolbars-4/manager-bundle.js - in fact, the storybook dev process wasn't even creating he web/node_modules/.cache/storybook/public/ directory at all.

dameat@nopants:~/work/memoryhole$ vite --version
vite/5.4.8 linux-x64 node-v22.12.0
dameat@nopants:~/work/memoryhole$ yarn rw --version
8.4.1
dameat@nopants:~/work/memoryhole$ yarn workspace web info storybook --name-only
└─ storybook@npm:7.6.17

I'll attach a log from running DEBUG=* yarn rw storybook &> debug.txt
debug.txt

You can probably reproduce with a fresh redwood installation, enabling miilion in the vite config, and running yarn rw storybook

What's the expected result?

I didn't expect enabling @million/lint in my vite config to affect my ability to run storybook.

Link to Minimal Reproducible Example

See above

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions