-
Notifications
You must be signed in to change notification settings - Fork 190
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
style is not loading #225
Comments
Hi @sali1982, I am missing that part of the readme too, unfortunately, as you can look in npm-package, there are few less files which are pointed out to http://npmjs.com/rc-tree/ specifically on https://github.com/react-component/tree/blob/master/assets/index.less ... And no output css file is present in the npm package... I have to migrate to https://vue-treeselect.js.org/ for now with https://github.com/akxcv/vuera |
I can only advise on how to fix this with webpack, but the way that I fixed it was to add these rules to my webpack config. module: {
rules: [
{
test: /\.less$/i,
use: [
{
loader: "style-loader",
},
{
loader: "css-loader",
},
{
loader: "less-loader",
},
],
},
],
}, You can find more advice on how to set this up on the less-loader npm page. In addition, I could not use less-loader 8.0 I had to downgrade to 7.3 in order to get this to work. I hope this helps someone else running into the same issue. |
Hi,
I am using this componet in my application but there is no style for it.
I have Css loader in my webpack.
Not sure what the issue could be.
The text was updated successfully, but these errors were encountered: