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
Currently our specs are done on our storybook app. With our current setup it will be diffulct to build storybook with a different react version then the one we have in the our package.json.
We've tried with some aliases, but it was not working since storybook code was expecting react 18.
constreactMajorVersion=process.env.REACT_MAJOR_VERSION;constisOldReactVersion=['16','17'].includes(reactMajorVersion);constreactModuleSufix=isOldReactVersion ? `-${reactMajorVersion}` : '';webpackConfig.resolve.alias={
...config.resolve.alias,react: require.resolve(`react${reactModuleSufix}`),// react-16 or react-17'react-dom': require.resolve(`react-dom${reactModuleSufix}`),// react-dom-16 or react-dom-17};
We'll need to move our cypress tests away from storybook and build a small app where we have full control over the configuration and can easily swap react versions.
The text was updated successfully, but these errors were encountered:
Currently our specs are done on our storybook app. With our current setup it will be diffulct to build storybook with a different react version then the one we have in the our package.json.
We've tried with some aliases, but it was not working since storybook code was expecting react 18.
We'll need to move our cypress tests away from storybook and build a small app where we have full control over the configuration and can easily swap react versions.
The text was updated successfully, but these errors were encountered: