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

Could not compile the SCSS theme file "../scss/app.scss" for the purpose of variable extraction #60

Open
mazeeblanke opened this issue Oct 23, 2019 · 1 comment

Comments

@mazeeblanke
Copy link

Hi, i have been trying to setup my project using this plugin. However the Plugin not working for me and keeps throwing error " Could not compile the SCSS theme file "../scss/app.scss" for the purpose of variable extraction. This is likely because it contains a Sass error "

Webpack version: 4.41
sass-loader: 8
less-loader: 5
antd-scss-theme-plugin: "^1.0.8"

ERROR in ./node_modules/antd/es/style/index.less (./node_modules/css-loader/dist/cjs.js??ref--4-1!./node_modules/antd-scss-theme-plugin/build/dist/lib/antdLessLoader.js??ref--4-2!./node_modules/antd/es/style/index.less)
    Module build failed (from ./node_modules/antd-scss-theme-plugin/build/dist/lib/antdLessLoader.js):
   Could not compile the SCSS theme file "../scss/app.scss" for the purpose of variable extraction. This is likely because it contains a Sass error.
    @ ./node_modules/antd/es/style/index.less 1:14-156 20:4-31:5 23:25-167
   @ ./node_modules/antd/es/button/style/index.js
    @ ./src/pages/Home/index.js
     @ ./src/App.js
    @ ./src/index.js
  @ multi ./src/index.js webpack-hot-middleware/client
@exzizt
Copy link

exzizt commented Jan 19, 2020

Same issue. Trying to use a function like darken, lighten, etc for colours causes this. Any way to fix this?

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

2 participants