diff --git a/packages/next/migrations.json b/packages/next/migrations.json index 80962be71bf30..daad88978238b 100644 --- a/packages/next/migrations.json +++ b/packages/next/migrations.json @@ -307,6 +307,15 @@ "alwaysAddToPackageJson": false } } + }, + "16.0.0": { + "version": "16.0.0-beta.0", + "packages": { + "next": { + "version": "13.3.0", + "alwaysAddToPackageJson": false + } + } } } } diff --git a/packages/react/plugins/storybook/index.ts b/packages/react/plugins/storybook/index.ts index dcdb767991ab6..54c23f4e62276 100644 --- a/packages/react/plugins/storybook/index.ts +++ b/packages/react/plugins/storybook/index.ts @@ -116,6 +116,14 @@ export const webpack = async ( }, resolve: { ...storybookWebpackConfig.resolve, + fallback: { + ...storybookWebpackConfig.resolve?.fallback, + // Next.js and other React frameworks may have server-code that uses these modules. + // They are not meant for client-side components so skip the fallbacks. + assert: false, + path: false, + util: false, + }, plugins: mergePlugins( ...((storybookWebpackConfig.resolve.plugins ?? []) as ResolvePluginInstance[]),