bramstein / postcss-scale

PostCSS plugin to scale values from one range to another.
80 stars 2 forks source link

Function 'scale' conflicts with 'transform: scale' #3

Open mehanoid opened 7 years ago

mehanoid commented 7 years ago

For example I have transform: scale(1.1); in my css, and then:

ERROR in ./~/css-loader?sourceMap&!./~/postcss-loader!./webpack/some-style.pcss
Module build failed: TypeError: Cannot read property 'type' of undefined
    at /home/meh/Projects/some_app/node_modules/postcss-scale/index.js:19:69
    at walk (/home/meh/Projects/some_app/node_modules/postcss-value-parser/lib/walk.js:7:22)
    at ValueParser.walk (/home/meh/Projects/some_app/node_modules/postcss-value-parser/lib/index.js:18:5)
    at /home/meh/Projects/some_app/node_modules/postcss-scale/index.js:14:21
    at /home/meh/Projects/some_app/node_modules/postcss/lib/container.js:192:28
    at /home/meh/Projects/some_app/node_modules/postcss/lib/container.js:148:26
    at Rule.each (/home/meh/Projects/some_app/node_modules/postcss/lib/container.js:114:22)
    at Rule.walk (/home/meh/Projects/some_app/node_modules/postcss/lib/container.js:147:21)
    at /home/meh/Projects/some_app/node_modules/postcss/lib/container.js:150:32
    at Root.each (/home/meh/Projects/some_app/node_modules/postcss/lib/container.js:114:22)
ifiri commented 6 years ago

I have the same issue.

ngonzalesdesign commented 5 years ago

Had same problem. Just went into the index.js file and replaced 'scale' with 'fluid' then used fluid() in my css.