[Bug]: Storyshot fails with TypeError: Cannot read properties of undefined (reading 'readdirSync')
#20624
Labels
TypeError: Cannot read properties of undefined (reading 'readdirSync')
#20624
Describe the bug
See https://www.runpkg.com/?@storybook/[email protected]/dist/frameworks/frameworkLoader.js#4 and https://www.runpkg.com/?@storybook/[email protected]/dist/frameworks/frameworkLoader.js#9.
fs
is plainrequire
d, but then tried to access via.default
without the interop code. Something in the transpilation is off.To Reproduce
System
System: OS: macOS 13.1 CPU: (10) arm64 Apple M1 Max Binaries: Node: 16.19.0 - /private/var/folders/v4/wwfy9s191x577dcxnlkx5vsc0000gn/T/xfs-93f4dd4c/node Yarn: 3.3.1 - /private/var/folders/v4/wwfy9s191x577dcxnlkx5vsc0000gn/T/xfs-93f4dd4c/yarn npm: 9.2.0 - ~/.nvm/versions/node/v16.19.0/bin/npm Browsers: Chrome: 109.0.5414.87 Firefox: 108.0.1 Safari: 16.2
Additional context
No response
The text was updated successfully, but these errors were encountered: