#`next_font_local__WEBPACK_IMPORTED_MODULE_0___default(...) is not a function` with `next/font/local`

1 messages · Page 1 of 1 (latest)

foggy sluice
#

Ah yes, looks like I need to update with npx sb@next upgrade --prerelease : https://github.com/storybookjs/storybook/issues/21330 / https://github.com/storybookjs/storybook/pull/21247

GitHub

Is your feature request related to a problem? Please describe Since next.js v13.2 deprecate the @next/font package in favor of the integrated next/font export. The storybook next.js integration onl...

GitHub

Closes #21330
What I did
Migrated @next/font to stable next/font present in next.js v13.2.0.
How to test

Add Storybook to a project using nextjs framework
Add next/font to preview.js (example usin...

foggy sluice
#

Worked perfectly once I updated to yesterday's release – I tried to delete my original message to save anyone from needing to bother reading it, but I don't think that's possible