This plugin is currently causing errors when building a static version of storybook. We weren't experiencing issues in storybook 7.1.x, but we're now having problems after updating to 7.5.x
> storybook build
@storybook/cli v7.5.2
info => Cleaning outputDir: /storybook-static
(node:39475) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './package.json' is not defined by "exports" in ./node_modules/storybook-addon-performance/package.json
at exportsNotFound (node:internal/modules/esm/resolve:294:10)
at packageExportsResolve (node:internal/modules/esm/resolve:641:9)
at resolveExports (node:internal/modules/cjs/loader:585:36)
at Module._findPath (node:internal/modules/cjs/loader:662:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1124:27)
at Function.resolve (node:internal/modules/helpers:188:19)
at getAbsolutePath (./.storybook/main.ts:84:26)
at Object.<anonymous> (./.storybook/main.ts:19:5)
at Module._compile (node:internal/modules/cjs/loader:1369:14)
at Module._compile (/Users/andrew/workspace/design-system/node_modules/.pnpm/esbuild-register@3.5.0_esbuild@0.18.17/node_modules/esbuild-register/dist/node.js:2258:26)
ELIFECYCLE Command failed with exit code 1.
This plugin is currently causing errors when building a static version of storybook. We weren't experiencing issues in storybook 7.1.x, but we're now having problems after updating to 7.5.x