-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Facing issue when running storybook on web #8
Comments
Please share your main.js |
@dannyhw : This is my main.ts file (am using Typescript) // .storybook/main.ts module.exports = { addons: [ framework: { docs: {}, typescript: { |
maybe try doing export default instead of |
Hi @dannyhw , I tried something like this. However, still getting the same error :( const StorybookConfig = { addons: [ framework: { docs: {}, typescript: { export default StorybookConfig; |
can you share the project? or a reproduction where you experience the problem? |
Hi @dannyhw , I just ran this command from the Getting started section of this repo only. I have not created any new project that I can share with you.
After that I tried running the command : |
@inkredusk ah ok well the template is actually a different repo here https://github.com/dannyhw/expo-template-storybook but let me just test that real quick then |
Hmm yeah I'm seeing the issue too, thanks for reporting will look into it |
@inkredusk seems to be an esbuild thing: storybookjs/storybook#30115 adding
in package.json should resolve for now until 8.4.8 is out. |
Hi,
I am facing an issue when running the command
npm run storybook:web
.OS : Windows
Node version: v22.11.0
Expo version: 52.0.17
Storybook version: 8.4.7
Typescript: 5.3.3
Below is the error:
npm run storybook:web
@storybook/core v8.4.7
SB_CORE-SERVER_0007 (MainFileEvaluationError): Storybook couldn't evaluate your .storybook\main.ts file.
Original error:
Error: Transform failed with 1 error:
(define name):1:0: ERROR: Expected identifier but found "import"
at failureErrorWithLog (\node_modules\esbuild\lib\main.js:1476:15)
at \node_modules\esbuild\lib\main.js:755:50
at responseCallbacks. (\node_modules\esbuild\lib\main.js:622:9)
at handleIncomingPacket (\node_modules\esbuild\lib\main.js:677:12)
at Socket.readFromStdout (\node_modules\esbuild\lib\main.js:600:7)
at Socket.emit (node:events:518:28)
at addChunk (node:internal/streams/readable:561:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
at Readable.push (node:internal/streams/readable:392:5)
at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)
at loadMainConfig (.\node_modules@storybook\core\dist\common\index.cjs:17511:11)
at async buildDevStandalone (.\node_modules@storybook\core\dist\core-server\index.cjs:37134:11)
at async withTelemetry (.\node_modules@storybook\core\dist\core-server\index.cjs:35757:12)
at async dev (.\node_modules@storybook\core\dist\cli\bin\index.cjs:2591:3)
at async s. (.\node_modules@storybook\core\dist\cli\bin\index.cjs:2643:74)
WARN Broken build, fix the error above.
WARN You may need to refresh the browser.
attention => Storybook now collects completely anonymous telemetry regarding usage.
This information is used to shape Storybook's roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://storybook.js.org/telemetry
Can someone please help?
The text was updated successfully, but these errors were encountered: