[Bug]: Importing anything that contains a word raw
in NextJS+Storybook project from ant-design makes every other import null
#26991
Labels
Describe the bug
There is a weird bug that happens in a project with latest NextJS 14 + Stroybook + Ant-Design. In Next everything works as expected but when I am trying to run storybook some imports from Ant-Design do not work. For instance this code works when I run NextJS server and doesn't work in Storybook (Drawer is null):
After some experimenting I found that problem arise only with ant-design components that have the word
raw
in them. So, importing Button works but Drawer doesn't.Note:
transpilePackages
andoptimizePackageImports
to make ant-design work with NextJS. So probably bug is somewhere in@storybook/nextjs
rxjs
. Maybe this is because of the next's internal optimizations for these packagesTo Reproduce
Reproduction repository
Here I:
System
Additional context
Error screenshot, but it just says that all imports from ant-design are empty:
The text was updated successfully, but these errors were encountered: