+4 votes
in NextJS by (930 points)
edited by

When I add antd library to NextJS project, it happen this issue. and show Image with other domain

4125 Answers

+1 vote
by (930 points)
edited by

In the nextjs.config.js file I add this line:
transpilePackages: [ "antd", "@ant-design", "rc-util", "rc-pagination", "rc-picker", "rc-notification", "rc-tooltip", "rc-tree", "rc-table" ],
and add image's domain like this
 

module.exports = {
  reactStrictMode: true,
  images: {
    domains: ["localhost", "fakestoreapi.com"],
  },
  transpilePackages: [
    "antd",
    "@ant-design",
    "rc-util",
    "rc-pagination",
    "rc-picker",
    "rc-notification",
    "rc-tooltip",
    "rc-tree",
    "rc-table",
  ],
};
0 votes
by
darknet marketplace  <a href="https://github.com/darknetmarketslist/darknetmarketslist ">dark web market urls </a>
0 votes
by
darknet drugs  <a href="https://github.com/darknetmarketlinks2025/darknetmarkets ">darknet drugs </a>
0 votes
by
dark market  <a href="https://github.com/darknetmarkets2025/darknetmarketlinks ">darknet markets url </a>
0 votes
by
bitcoin dark web  <a href="https://github.com/darkwebmarketslinks/darkwebmarkets ">darknet marketplace </a>
0 votes
by
darknet marketplace  <a href="https://github.com/darkwebwebsites/darkwebwebsites ">darknet markets links </a>
0 votes
by
dark web markets  <a href="https://github.com/nexusdarkrtv1u/nexusdark ">dark market link </a>
0 votes
by
dark market 2025  <a href="https://github.com/darknetmarketlinks2025/darknetmarkets ">dark web market links </a>
0 votes
by
darknet markets 2025  <a href="https://github.com/nexusdarkrtv1u/nexusdark ">dark web markets </a>
0 votes
by
onion dark website  <a href="https://github.com/darkwebmarketslinks/darkwebmarkets ">dark web market urls </a>
Welcome to Qtsd Q&A, where you can ask questions and receive answers from other members of the community.
...