Skip to content

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
@vercel
Copy link
Contributor

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

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

2 participants