Closed NicholasG04 closed 3 years ago
Sorry I'm just now seeing this issues. solved yet?
You can see if this project works for you. https://github.com/SolidZORO/mkn
No, I chose to use Chakra-UI because it has better support for React in almost every way! Sorry.
Hi, first of all thank you very much for this plugin.
I had an issue where, unlike your example, I got an error of
Module not found. Cannot resolve less-loader
and so installed the same less-loader version as you are using with this plugin. This fixed that issue, but when importing antd LESS files from my vars file I'm now getting issues such as the following (this one is from@import '~antd/lib/style/dark.less';
):I thought this might be due to a setting about importing files without the
.less
extension, but changing that doesn't seem to fix it. Could it be about relative pathnames maybe? Not sure if I can think of a way to fix this. Thanks!Also, I'm using less@3.12.2 to avoid the issues with round(), ceil() etc from antd.
Dependencies:
next.config.js:
src/styles/vars.less:
Edit: I also see that relativeUrls is true by default in less-loader (https://webpack.js.org/loaders/less-loader/#options) so I am very confused as to why this might happen.