Open Elfayer opened 6 years ago
I downgraded to element-theme-chalk@2.0.4
, same issue for $--checkbox-bordered-height
missing in the element-variables.scss
file. I had to go back to element-theme-chalk@2.0.3
to fix all this.
+1
Please verify if node_modules/element-theme-chalk/src/common/var.scss
has these variables. If not, make sure you have latest element-theme-chalk
installed.
I have the latest version of element-theme-chalk
and I do have both variables that element-theme
is missing on my file node_modules/element-theme-chalk/src/common/var.scss
. Still I get the error mentioned above.
I couldn't reproduce this on my computer. Could you minify your project and upload it to GitHub?
I found the problem for me.
I installed the element-theme-chalk@2.0.3
globally, that is why I am missing the variables.
Removing the global package solved the problem.
Not my case:
$ npm -g list --depth=0
C:\Users\<username>\AppData\Roaming\npm
`-- npm-check-updates@2.13.0
I have the same issue; regardless of whether element-theme-chalk is installed globally or locally or not, it happens each time.
@groenroos What are your element-ui
, element-theme-chalk
and element-theme
versions?
I personally have those versions and it works now:
{
"dependencies": {
"element-ui": "^2.0.11",
},
"devDependencies": {
"element-theme-chalk": "^2.0.11",
}
}
And element-theme@2.0.1
globally.
Then simply run:
> et -i
> et
If you already have a element-variables.scss
file, you don't have to run et -i
.
node_modules
npm i
et
element-variables.scss
to _element-variables.scss
(to keep your modifications)et -i
(to create a new element-variables.scss
file)et
@Elfayer I did as you suggest: Remove node_modules Run npm i Run et -i Run et But I still have missing variables while execute et. It should be the problem of file element-variables.scss. It was generated with missing variables by et -i. And I'm user below version: element-ui:2.3.3 element-theme:2.0.1 element-theme-chalk:2.3.3 And I still don't know how to go over this issue.
@snakepoon Correct, had to update again myself, there is a new issue. :weary: In my case it seems like element-theme is generating a file with the exact modifications I did before... But I am generating a new file, so where does it take this information from? Every time I touch this there is a problem. It's the first and last time I use element.
@snakepoon I made some testing and it finally works. I am not sure why, can you try the following and tell me if it fixes it for you?
Skip steps that do not concern your case.
/node_modules
/theme
npm i
npm i element-theme-chalk -D
element-ui
is the same as element-theme-chalk
in your package.json
element-variables.scss
to _element-variables.scss
(to keep your modifications)et -i
(to create a new element-variables.scss
file)et
Versions
element-theme: 2.0.1 element-ui: 2.0.7 element-theme-chalk: 2.0.7
Problem
When I run
et -i
, I get the fileelement-variables.scss
. This file doesn't contain the variable$--input-clear-hover-color
. And when I runet
, I get the following output:How am I supposed to fix this?