SolidZORO / next-plugin-antd-less

🎩 Use Antd (Less) with Next.js v12, Zero Dependency on other Next-Plugins.
MIT License
345 stars 48 forks source link

Error with latest version of antd #77

Closed LikeCarter closed 2 years ago

LikeCarter commented 2 years ago

Hi,

It seems we're having trouble compiling the latest version of antd "4.17.0-alpha.0"

Is the issue: the less parser does not recognize @import?

The error message:

/node_modules/antd/lib/button/style/index-default.less)

@import './index';
^
Variable @import is undefined
LikeCarter commented 2 years ago

Seems it is fixed in 4.17.0-alpha.3.

SolidZORO commented 2 years ago

antd alpha version is very uncertain, especially in next.js, the stable version is recommended.