-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
Description
Pug Version: 1.0.0-alpha6
Node Version: 8.9.4
Detailed version information
- "jstransformer-stylus": "^1.5.0",
- "pug-cli": "^1.0.0-alpha6"
Node 8 Docker Image (Debian Jessie)
https://github.com/nodejs/docker-node/blob/8498ff5302c19506c9edc3ce152f2bd4aa6b26b3/8/Dockerfile
Input Pug
Fails:
stylus(compress)
Passes:
stylus(compress=true)
Error
/srv/node_modules/pug-filters/lib/handle-filters.js:100
throw error('FILTER_OPTION_NOT_CONSTANT', ex.message + ' All filters are rendered compile-time so filter options must be constants.', node);
Trace
Step #1: true is not constant. All filters are rendered compile-time so filter options must be constants.
Step #1: at makeError (/srv/node_modules/pug-error/index.js:32:13)
Step #1: at /srv/node_modules/pug-filters/lib/handle-filters.js:100:15
Step #1: at Array.forEach (<anonymous>)
Step #1: at getAttributes (/srv/node_modules/pug-filters/lib/handle-filters.js:95:14)
Step #1: at walk.includeDependencies (/srv/node_modules/pug-filters/lib/handle-filters.js:23:19)
Step #1: at walkAST (/srv/node_modules/pug-walk/index.js:23:18)
Step #1: at /srv/node_modules/pug-walk/index.js:104:20
Step #1: at Array.reduce (<anonymous>)
Step #1: at walkAndMergeNodes (/srv/node_modules/pug-walk/index.js:103:18)
Step #1: at walkAST (/srv/node_modules/pug-walk/index.js:37:19)
Step #1: npm ERR! code ELIFECYCLE
Step #1: npm ERR! errno 1
Additional Comments
This seems to work on my local machine, but fails during Google Cloud Build process.
My local machine: Node 8.9.4 on Windows Subsystem for Linux (bash).
Pug and JS Transformer versions are the same.