DEV Community

Discussion on: Using Ant Design with NextJS (custom variables for Ant Design)

Collapse
 
kulgeek profile image
isaack okello brian

You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See webpack.js.org/concepts#loaders

@import "~antd/dist/antd.less";

Collapse
 
burhanuday profile image
Burhanuddin Udaipurwala

Hey, make sure you copied next.config.js file correctly. Less files require a special loader to be used. Also recheck that you performed all steps

Collapse
 
tommyjackson85 profile image
Teejay85

I am having this problem too but I copied and pasted your next.config.js file. Is there a specific folder this file should go under?