-
Notifications
You must be signed in to change notification settings - Fork 1.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] antd.xxx 语法在 nextjs 中不起作用。 #8134
Comments
问题描述中提到了在nextjs中使用antd.xxx语法不起作用的问题,可能的解决方案如下:
module.exports = {
...
webpack: (config) => {
config.module.rules.push({
test: /\.(png|jpe?g|gif|svg)$/i,
use: [
{
loader: 'file-loader',
options: {
publicPath: '/_next',
name: 'static/media/[name].[hash].[ext]',
},
},
],
});
return config;
},
...
};
{
"plugins": [
["import", { "libraryName": "antd", "style": "css" }]
]
} 综上所述,以上是一些可能的解决方案,根据具体的问题和环境情况选择适合自己的解决方案。 |
Hello @LengYXin. We totally like your proposal/feedback, welcome to send us a Pull Request for it. Please provide changelog/TypeScript/documentation/test cases if needed and make sure CI passed, we will review it soon. We appreciate your effort in advance and looking forward to your contribution! 你好 @LengYXin,我们完全同意你的提议/反馈,欢迎直接在此仓库 创建一个 Pull Request 来解决这个问题。请务必提供改动所需相应的 changelog、TypeScript 定义、测试用例、文档等,并确保 CI 通过,我们会尽快进行 Review,提前感谢和期待您的贡献。 |
我删除了一下。 |
解决了吗?
✓ Compiled in 5.4s (7560 modules)
|
[email protected] works for me. |
🐛 bug 描述
提交PR 更改一下?
📷 复现步骤
🏞 期望结果
💻 复现代码
© 版本信息
🚑 其他信息
The text was updated successfully, but these errors were encountered: