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
SB_CORE-SERVER_0007 (MainFileEvaluationError): Storybook couldn't evaluate your .storybook/main.ts file.
Original error:
ReferenceError: require is not defined
at getAbsolutePath (/.storybook/main.ts:10:18)
at /.storybook/main.ts:15:5
at ModuleJobSync.runSync (node:internal/modules/esm/module_job:396:35)
at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:363:47)
at loadESMFromCJS (node:internal/modules/cjs/loader:1569:24)
at Module._compile (node:internal/modules/cjs/loader:1721:5)
at Object.loadTS [as .ts] (node:internal/modules/cjs/loader:1831:10)
at Module.load (node:internal/modules/cjs/loader:1473:32)
at Function._load (node:internal/modules/cjs/loader:1285:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at loadMainConfig (/Users/maciej.jezierski/projects/FiskarsGroup_CoreLibrary/node_modules/.pnpm/@storybook[email protected][email protected]/node_modules/@storybook/core/dist/common/index.cjs:17550:11)
at async buildDevStandalone (/Users/maciej.jezierski/projects/FiskarsGroup_CoreLibrary/node_modules/.pnpm/@storybook[email protected][email protected]/node_modules/@storybook/core/dist/core-server/index.cjs:37127:11)
at async withTelemetry (/Users/maciej.jezierski/projects/FiskarsGroup_CoreLibrary/node_modules/.pnpm/@storybook[email protected][email protected]/node_modules/@storybook/core/dist/core-server/index.cjs:35750:12)
at async dev (/Users/maciej.jezierski/projects/FiskarsGroup_CoreLibrary/node_modules/.pnpm/@storybook[email protected][email protected]/node_modules/@storybook/core/dist/cli/bin/index.cjs:2591:3)
at async s. (/Users/maciej.jezierski/projects/FiskarsGroup_CoreLibrary/node_modules/.pnpm/@storybook[email protected][email protected]/node_modules/@storybook/core/dist/cli/bin/index.cjs:2643:74)
Additional context
All dependencies and proper configuration should be installed on fresh project
The text was updated successfully, but these errors were encountered:
Environment
Reproduction
https://stackblitz.com/edit/github-qzue1bhu?file=.storybook%2Fmain.ts
Describe the bug
@storybook/core v8.5.0
SB_CORE-SERVER_0007 (MainFileEvaluationError): Storybook couldn't evaluate your .storybook/main.ts file.
Original error:
ReferenceError: require is not defined
at getAbsolutePath (/.storybook/main.ts:10:18)
at /.storybook/main.ts:15:5
at ModuleJobSync.runSync (node:internal/modules/esm/module_job:396:35)
at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:363:47)
at loadESMFromCJS (node:internal/modules/cjs/loader:1569:24)
at Module._compile (node:internal/modules/cjs/loader:1721:5)
at Object.loadTS [as .ts] (node:internal/modules/cjs/loader:1831:10)
at Module.load (node:internal/modules/cjs/loader:1473:32)
at Function._load (node:internal/modules/cjs/loader:1285:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at loadMainConfig (/Users/maciej.jezierski/projects/FiskarsGroup_CoreLibrary/node_modules/.pnpm/@storybook[email protected][email protected]/node_modules/@storybook/core/dist/common/index.cjs:17550:11)
at async buildDevStandalone (/Users/maciej.jezierski/projects/FiskarsGroup_CoreLibrary/node_modules/.pnpm/@storybook[email protected][email protected]/node_modules/@storybook/core/dist/core-server/index.cjs:37127:11)
at async withTelemetry (/Users/maciej.jezierski/projects/FiskarsGroup_CoreLibrary/node_modules/.pnpm/@storybook[email protected][email protected]/node_modules/@storybook/core/dist/core-server/index.cjs:35750:12)
at async dev (/Users/maciej.jezierski/projects/FiskarsGroup_CoreLibrary/node_modules/.pnpm/@storybook[email protected][email protected]/node_modules/@storybook/core/dist/cli/bin/index.cjs:2591:3)
at async s. (/Users/maciej.jezierski/projects/FiskarsGroup_CoreLibrary/node_modules/.pnpm/@storybook[email protected][email protected]/node_modules/@storybook/core/dist/cli/bin/index.cjs:2643:74)
Additional context
All dependencies and proper configuration should be installed on fresh project
The text was updated successfully, but these errors were encountered: