Skip to content
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

Open
sali1982 opened this issue Mar 7, 2020 · 2 comments
Open

style is not loading #225

sali1982 opened this issue Mar 7, 2020 · 2 comments

Comments

@sali1982
Copy link

sali1982 commented Mar 7, 2020

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.

@Strnadj
Copy link

Strnadj commented Jun 15, 2020

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

@cogwizzle
Copy link

cogwizzle commented Apr 14, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants