Skip to content

chore(storybook): makes main.js follow Common JS syntax, which allows it to be run with node-23.8 #2100

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

leofarias-cpu
Copy link
Collaborator

Main.js mixed Common JS and ESM syntax, which prevented pnpm dev:storybook from working in (at least) node 23.7 and 23.8.

Storybook breaks in newer versions of Node.js #2083

Summary

This file caused some headaches after i formatted my computer and installed the latest version of node, which was supposed to work with shoreline, only to find that storybook randomly wouldn't run anymore.

Example

// .storybook/main.s
import { dirname, join } from 'node:path'
// turns into
const { dirname, join } = require('node:path')

… it to be run with node-23.8

main.js mixed Common JS and ESM syntax, which prevented pnpm dev:storybook from working in (at
least) node 23.7 and 23.8.

Storybook breaks in newer versions of Node.js #2083
@leofarias-cpu leofarias-cpu requested a review from a team as a code owner April 3, 2025 18:51
Copy link

vercel bot commented Apr 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Updated (UTC)
shoreline-docs ⬜️ Ignored (Inspect) Apr 3, 2025 6:51pm

@beatrizmilhomem beatrizmilhomem linked an issue Apr 30, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Storybook breaks in newer versions of Node.js
1 participant