You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An error is thrown when trying to display an email using the react-email 2.1.0 library and Storybook 8.0.3 in a Vite standalone project.
TypeError: Cannot read properties of undefined (reading 'prototype')
at _inheritsLoose (http://localhost:6006/node_modules/.cache/storybook/1c3385a5d25e538d10b518b310c74d3ca2690b6aaffeadccd74da79736171f86/sb-vite/deps/chunk-ESNLZ3U4.js?v=995809a4:5361:57)
at http://localhost:6006/node_modules/.cache/storybook/1c3385a5d25e538d10b518b310c74d3ca2690b6aaffeadccd74da79736171f86/sb-vite/deps/chunk-ESNLZ3U4.js?v=995809a4:5366:11
at http://localhost:6006/node_modules/.cache/storybook/1c3385a5d25e538d10b518b310c74d3ca2690b6aaffeadccd74da79736171f86/sb-vite/deps/chunk-ESNLZ3U4.js?v=995809a4:5385:10
at node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js (http://localhost:6006/node_modules/.cache/storybook/1c3385a5d25e538d10b518b310c74d3ca2690b6aaffeadccd74da79736171f86/sb-vite/deps/chunk-ESNLZ3U4.js?v=995809a4:5419:9)
at __require2 (http://localhost:6006/node_modules/.cache/storybook/1c3385a5d25e538d10b518b310c74d3ca2690b6aaffeadccd74da79736171f86/sb-vite/deps/chunk-ZSRNYESD.js?v=995809a4:19:50)
at node_modules/react-dom/server.node.js (http://localhost:6006/node_modules/.cache/storybook/1c3385a5d25e538d10b518b310c74d3ca2690b6aaffeadccd74da79736171f86/sb-vite/deps/chunk-ESNLZ3U4.js?v=995809a4:12074:11)
at __require2 (http://localhost:6006/node_modules/.cache/storybook/1c3385a5d25e538d10b518b310c74d3ca2690b6aaffeadccd74da79736171f86/sb-vite/deps/chunk-ZSRNYESD.js?v=995809a4:19:50)
at node_modules/react-dom/server.js (http://localhost:6006/node_modules/.cache/storybook/1c3385a5d25e538d10b518b310c74d3ca2690b6aaffeadccd74da79736171f86/sb-vite/deps/chunk-ESNLZ3U4.js?v=995809a4:12089:22)
at __require2 (http://localhost:6006/node_modules/.cache/storybook/1c3385a5d25e538d10b518b310c74d3ca2690b6aaffeadccd74da79736171f86/sb-vite/deps/chunk-ZSRNYESD.js?v=995809a4:19:50)
at http://localhost:6006/node_modules/.cache/storybook/1c3385a5d25e538d10b518b310c74d3ca2690b6aaffeadccd74da79736171f86/sb-vite/deps/@react-email_components.js?v=995809a4:27056:30
works fine in SB7 and breaks after upgrading to SB8
in SB7 the 'react-dom/server' import resolves to node_modules/react-dom/server.browser.js while in SB8 the same import resolves to node_modules/react-dom/server.js which is a version for nodejs
Describe the bug
An error is thrown when trying to display an email using the react-email 2.1.0 library and Storybook 8.0.3 in a Vite standalone project.
It works using SB7 but seems like breaking on SB8
To Reproduce
Simple vite 5 + react 18 + typescript 5 project
Storybook 8
react-email 2.1.0
System
Additional context
No response
The text was updated successfully, but these errors were encountered: