storybook-bot
88c7787e0b
Bump version from "8.4.0-beta.1" to "8.4.0-beta.2" [skip ci]
2024-10-29 13:06:13 +00:00
dohi0512
d1f0385e40
Remove duplicate comments
2024-10-29 13:13:23 +09:00
storybook-bot
7987b0472a
Bump version from "8.4.0-beta.0" to "8.4.0-beta.1" [skip ci]
2024-10-28 13:19:43 +00:00
Kevin Yank
bebaa3ba3b
Ensure consistent absolute path for Next.js-bundled react and react-dom
...
In a pnpm monorepo with multiple Next.js projects, different projects can have different peerDependencies for Next.js, which causes pnpm to install multiple instances of the `next` package in the monorepo. In this situation, prior to this change, Storybook's webpack configuration could consume `react` from one instance of Next and `react-dom` from another, causing React render errors due to the mismatch.
This issue was caused by the `configureConfig` function adding webpack module aliases for `react` using `addScopedAlias` (which generates an alias with an absolute filesystem path pointing to the correct instance of `next`, e.g. `'/path/to/next/dist/compiled/react'`), but adding module aliases for `react-dom` using `setAlias` (which generates an alias with a relative path, e.g. `'next/dist/compiled/react-dom'`).
This would create a webpack configuration like this:
```
alias: {
⋮
react: '/Users/kyank/Developer/authentication-ui/node_modules/.pnpm/next@14.2.13_@babel+core@7.25.2_@opentelemetry+api@1.8.0_@playwright+test@1.48.1_babel-plugin_z4uy3ayinaafvek4wmyon66ziu/node_modules/next/dist/compiled/react',
⋮
'react-dom/test-utils': 'next/dist/compiled/react-dom/cjs/react-dom-test-utils.production.js',
'react-dom$': 'next/dist/compiled/react-dom',
'react-dom/client': 'next/dist/compiled/react-dom/client',
'react-dom/server': 'next/dist/compiled/react-dom/server',
⋮
},
```
This change uses `addScopedAlias` to create aliases with absolute filesystem paths for all of the Next.js-bundled React packages. This fixes the React rendering errors in our monorepo.
This issue seems to have been [introduced in Storybook 8.3.0](https://github.com/storybookjs/storybook/pull/29044/files#diff-20144c44999f6f1054f74f56ef1c3fcfcec008fd7b5caea5e10568e95eccb051 ).
2024-10-25 11:12:33 +11:00
Yevhenii
35ca9136cf
Merge branch 'next' into next
2024-10-24 23:29:41 +03:00
storybook-bot
d6098267c9
Bump version from "8.4.0-alpha.8" to "8.4.0-beta.0" [skip ci]
2024-10-24 14:48:43 +00:00
Yevhenii
9b6a437810
Merge branch 'next' into next
2024-10-22 11:33:36 +03:00
storybook-bot
3e154da5fa
Bump version from "8.4.0-alpha.7" to "8.4.0-alpha.8" [skip ci]
2024-10-21 14:01:33 +00:00
Yevhenii
05a44c86bf
Merge branch 'next' into next
2024-10-13 20:20:30 +03:00
storybook-bot
9d862798d6
Bump version from "8.4.0-alpha.6" to "8.4.0-alpha.7" [skip ci]
2024-10-12 21:05:10 +00:00
Yevhenii
7bf09471b0
Merge branch 'next' into next
2024-10-10 15:13:29 +03:00
storybook-bot
9e3d960477
Bump version from "8.4.0-alpha.5" to "8.4.0-alpha.6" [skip ci]
2024-10-09 21:34:04 +00:00
Yevhenii
5a4d779b82
Merge branch 'next' into next
2024-10-09 11:38:30 +03:00
storybook-bot
54b0b3c9f9
Bump version from "8.4.0-alpha.4" to "8.4.0-alpha.5" [skip ci]
2024-10-08 14:00:12 +00:00
Yevhenii
7937702959
Merge branch 'next' into next
2024-10-04 13:24:34 +03:00
storybook-bot
127c43afeb
Bump version from "8.4.0-alpha.3" to "8.4.0-alpha.4" [skip ci]
2024-10-04 01:02:36 +00:00
yevhenii.honcharenko
d0fb8a5a8c
Merge remote-tracking branch 'origin/next' into next
2024-10-02 16:01:17 +03:00
yevhenii.honcharenko
395173f948
Next.js: Update dependencies
2024-10-02 16:00:50 +03:00
storybook-bot
f3b15ce1f2
Bump version from "8.4.0-alpha.2" to "8.4.0-alpha.3" [skip ci]
2024-10-02 01:47:29 +00:00
storybook-bot
7662234ce0
Bump version from "8.4.0-alpha.1" to "8.4.0-alpha.2" [skip ci]
2024-09-28 11:37:29 +00:00
storybook-bot
a6100eb1f7
Bump version from "8.4.0-alpha.0" to "8.4.0-alpha.1" [skip ci]
2024-09-24 13:09:33 +00:00
Jeppe Reinhold
f5b15253b4
Merge branch 'next' into remove-fs-extra
2024-09-16 20:13:28 +02:00
ziebam
2e89262e63
Remove fs-extra
from frameworks/nextjs
2024-09-14 13:32:21 +02:00
Yevhenii
3da4372557
Merge branch 'next' into next
2024-09-12 09:06:30 +03:00
storybook-bot
8b16feb676
Bump version from "8.3.0" to "8.4.0-alpha.0" [skip ci]
2024-09-11 13:56:33 +00:00
Yevhenii
98e660897a
Merge branch 'next' into next
2024-09-11 16:55:29 +03:00
storybook-bot
7e94ba615f
Bump version from "8.3.0-beta.5" to "8.3.0" [skip ci]
2024-09-11 13:20:25 +00:00
Yevhenii
b9e35a1741
Merge branch 'next' into next
2024-09-11 16:08:10 +03:00
storybook-bot
bce7d703aa
Bump version from "8.3.0-beta.4" to "8.3.0-beta.5" [skip ci]
2024-09-11 11:53:23 +00:00
Kasper Peulen
603841c3fe
Merge pull request #29044 from storybookjs/valentin/propagate-error-in-testing
...
Portable Stories: Improve Handling of React Updates and Errors
2024-09-11 11:54:59 +02:00
Yevhenii
5faae40016
Merge branch 'next' into next
2024-09-10 09:14:46 +03:00
storybook-bot
cce24a0ed0
Bump version from "8.3.0-beta.3" to "8.3.0-beta.4" [skip ci]
2024-09-09 08:15:55 +00:00
Jeppe Reinhold
fe0843bd03
Merge branch 'next' of github.com:storybookjs/storybook into valentin/propagate-error-in-testing
2024-09-09 10:10:06 +02:00
Valentin Palkovic
ea1a533a4b
Fix Webpack aliasing
2024-09-06 14:46:21 +02:00
Valentin Palkovic
714913d644
Next.js: Fix react-dom/test-utils aliasing
2024-09-05 16:11:50 +02:00
storybook-bot
daf615930c
Bump version from "8.3.0-beta.2" to "8.3.0-beta.3" [skip ci]
2024-09-05 11:30:05 +00:00
Valentin Palkovic
61092947bb
Merge remote-tracking branch 'origin/next' into valentin/propagate-error-in-testing
2024-09-05 13:20:50 +02:00
Valentin Palkovic
addcce3fed
Next.js: Update dependencies
2024-09-05 09:44:42 +02:00
yevhenii.honcharenko
64fbe39ad0
NextJS: fix sass-loader version for compatibility with nodejs > 20
2024-09-04 15:59:44 +03:00
Valentin Palkovic
da21bfecb7
Next.js: Update webpack configuration to support react-dom/test-utils
2024-09-04 13:00:05 +02:00
storybook-bot
00c1524e0e
Bump version from "8.3.0-beta.1" to "8.3.0-beta.2" [skip ci]
2024-09-02 15:29:31 +00:00
storybook-bot
acd2b709e6
Bump version from "8.3.0-beta.0" to "8.3.0-beta.1" [skip ci]
2024-08-30 18:33:52 +00:00
Valentin Palkovic
849fb20afd
Merge pull request #28992 from storybookjs/valentin/fix-wrong-nextjs-framework-reference
...
Next.js: Fix wrong Next.js framework reference
2024-08-30 15:14:38 +02:00
storybook-bot
d8b6ce8121
Bump version from "8.3.0-alpha.11" to "8.3.0-beta.0" [skip ci]
2024-08-29 10:24:09 +00:00
Norbert de Langen
0a810d1fb2
Merge branch 'next' into valentin/fix-wrong-nextjs-framework-reference
2024-08-29 09:39:39 +02:00
storybook-bot
7d6aa6bb11
Bump version from "8.3.0-alpha.10" to "8.3.0-alpha.11" [skip ci]
2024-08-29 04:36:36 +00:00
Valentin Palkovic
9782906115
Next.js: Fix wrong Next.js framework reference
2024-08-28 14:53:05 +02:00
storybook-bot
87c37572bb
Bump version from "8.3.0-alpha.9" to "8.3.0-alpha.10" [skip ci]
2024-08-27 17:06:54 +00:00
storybook-bot
6388f93b1f
Bump version from "8.3.0-alpha.8" to "8.3.0-alpha.9" [skip ci]
2024-08-23 16:50:39 +00:00
storybook-bot
f9d8ccf3b9
Bump version from "8.3.0-alpha.7" to "8.3.0-alpha.8" [skip ci]
2024-08-21 06:47:17 +00:00