Skip to content
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

Fix modularizeImports transform of antd #52148

Merged
merged 2 commits into from
Jul 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/next/src/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ function assignDefaults(
transform: 'react-bootstrap/{{member}}',
},
antd: {
transform: 'antd/es/{{member}}',
transform: 'antd/es/{{kebabCase member}}',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be antd/lib/{{kebabCase member}}?
We keep getting error on build with latest canary version

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

configResponsive and useResponsive share the same file, they are not single file module

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still the vercel build failing for antd imports with same error as below:
Module not found: Can't resolve 'antd/es/Avatar'

Kindly fix this as we are waiting for our production deployment build Since last 24 hrs, or if any workaround until then you can suggest?
Thanks in advance.

},
ahooks: {
transform: 'ahooks/es/{{member}}',
Expand Down