Commit 1c90fc8
committed
🤖 fix: require Node.js v20+ for Storybook
The issue was that Node.js v18.19.1 had a conflict with esbuild-register
when loading Vite code in Storybook's config. Specifically, esbuild-register
was trying to declare 'const __dirname' but it was already declared in the
environment, causing a SyntaxError.
Node.js v20.19.4 resolves this issue.
Changes:
- Add Node.js version check to Makefile (requires v20+)
- Apply version check to all Storybook-related targets
- Add --no-open flag to storybook dev to prevent xdg-open errors on headless machines
- Provide helpful error message with instructions to upgrade using 'n'
_Generated with `cmux`_1 parent 033eccc commit 1c90fc8
1 file changed
+22
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
49 | 66 | | |
50 | 67 | | |
51 | 68 | | |
| |||
244 | 261 | | |
245 | 262 | | |
246 | 263 | | |
247 | | - | |
| 264 | + | |
| 265 | + | |
248 | 266 | | |
249 | 267 | | |
| 268 | + | |
250 | 269 | | |
251 | 270 | | |
252 | 271 | | |
| 272 | + | |
253 | 273 | | |
254 | 274 | | |
255 | 275 | | |
| 276 | + | |
256 | 277 | | |
257 | 278 | | |
258 | 279 | | |
| |||
0 commit comments