Error building to deploy


#1

Hey Guys,

I have been having no issues posting updates to my app for some time now, but just today when trying to push a new minor update up with pm2-meteor deploy I am getting the following.

ERROR: Command failed: cd /home/mike/sites/mbu && meteor build --architecture os.linux.x86_64 --directory /home/mike/sites/mbu

WARNING: The output directory is under your source tree.
Your generated files may get interpreted as source code!
Consider building into a different directory instead
meteor build …/output

Errors prevented bundling:
While minifying app stylesheet:
<input css 1>:18529:5: Lexical error on line 1: Unrecognized text.

Erroneous area:
1: 100% - $icon-size-xl - 1
^…^
at <input css 1>:18529:5
at Object.parseError
(/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/postcss-calc/dist/parser.js:1164:15)
at Object.lexer_parseError
(/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/postcss-calc/dist/parser.js:2297:44)
at Object.lexer_next
(/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/postcss-calc/dist/parser.js:3292:22)
at Object.lexer_fastLex
(/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/postcss-calc/dist/parser.js:3367:18)
at fastLex
(/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/postcss-calc/dist/parser.js:1567:27)
at Parser.parse
(/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/postcss-calc/dist/parser.js:1641:30)
at
/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/postcss-calc/dist/lib/transform.js:30:30
at walk
(/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/postcss-value-parser/lib/walk.js:19:7)
at ValueParser.walk
(/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/postcss-value-parser/lib/index.js:18:3)
at transformValue
(/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/postcss-calc/dist/lib/transform.js:24:50)
at _default
(/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/postcss-calc/dist/lib/transform.js:59:100)
at
/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/postcss-calc/dist/index.js:25:51
at container.es6:110:18
at Rule.each (container.es6:76:16)
at Rule.walk (container.es6:107:17)
at container.es6:121:24
at Root.each (container.es6:76:16)
at Root.walk (container.es6:107:17)
at
/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/postcss-calc/dist/index.js:23:9
at initializePlugin
(/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/cssnano/dist/index.js:35:51)
at
/home/mike/.meteor/packages/meteor-tool/.1.8.0.1gdnmok.4nus++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/meteor-promise/fiber_pool.js:43:40

While minifying app stylesheet:
<input css 2>:18529:5: Lexical error on line 1: Unrecognized text.

Erroneous area:
1: 100% - $icon-size-xl - 1
^…^
at <input css 2>:18529:5
at Object.parseError
(/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/postcss-calc/dist/parser.js:1164:15)
at Object.lexer_parseError
(/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/postcss-calc/dist/parser.js:2297:44)
at Object.lexer_next
(/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/postcss-calc/dist/parser.js:3292:22)
at Object.lexer_fastLex
(/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/postcss-calc/dist/parser.js:3367:18)
at fastLex
(/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/postcss-calc/dist/parser.js:1567:27)
at Parser.parse
(/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/postcss-calc/dist/parser.js:1641:30)
at
/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/postcss-calc/dist/lib/transform.js:30:30
at walk
(/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/postcss-value-parser/lib/walk.js:19:7)
at ValueParser.walk
(/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/postcss-value-parser/lib/index.js:18:3)
at transformValue
(/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/postcss-calc/dist/lib/transform.js:24:50)
at _default
(/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/postcss-calc/dist/lib/transform.js:59:100)
at
/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/postcss-calc/dist/index.js:25:51
at container.es6:110:18
at Rule.each (container.es6:76:16)
at Rule.walk (container.es6:107:17)
at container.es6:121:24
at Root.each (container.es6:76:16)
at Root.walk (container.es6:107:17)
at
/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/postcss-calc/dist/index.js:23:9
at initializePlugin
(/home/mike/.meteor/packages/standard-minifier-css/.1.5.2.19zauaq.d1zr++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdCSS.os/npm/node_modules/meteor/minifier-css/node_modules/cssnano/dist/index.js:35:51)
at
/home/mike/.meteor/packages/meteor-tool/.1.8.0.1gdnmok.4nus++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/meteor-promise/fiber_pool.js:43:40

Any Ideas what could be causing this? I was able to deploy after removing the: “standard-minifier-css@1.5.0” package but obviously this isn’t the ideal situation.

I also updated to Meteor 1.8.0.1 from 1.8 … I downgraded back to 1.8 also but im not sure if that was also causing an issue or if perhaps it was an issue with both considering what i can discern from the last few error messages.


#2

To be honest, the error message states that this is the cause:

100% - $icon-size-xl - 1

and if I’m honest that doesn’t really look like valid css to me.


#3

I agree… But that isn’t my code…


#4

I think there’s a bug in standard-minifier-css, it can no longer handle CSS like max-width: calc("100% - 2em");.