-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[Bug]: Next.js next/font/google
syntax error on Storybook 8
#26450
Comments
Hi @muhghazaliakbar, Thank you for reporting this! I think it has something to do with the SWC mode because in Storybook 8.0 we will use SWC if Next.js uses it. Please read the migration docs: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#automatic-swc-mode-detection. Just for testing purposes, could you try to create a
Then start Storybook, which should run in Babel mode (You will see a message in the terminal). Does the error also occurs in Babel mode? |
@valentinpalkovic Thank you for fast response! I did added |
I am having a similar issue (I believe) with |
@muhghazaliakbar Indeed, |
Describe the bug
I did upgraded my storybook version from
v7
tov8
using this migration docs: https://storybook.js.org/docs/migration-guide, everything going well except thenext/font/google
import.Here's my font import code:
And this is my complete error message from terminal:
To Reproduce
You can reproduce the error by installing next.js
~14
with storybook 8 and implementnext/font/google
like I did above.System
Additional context
No response
The text was updated successfully, but these errors were encountered: