{"action":"created","issue":{"url":"https://api.github.com/repos/cssnano/cssnano/issues/638","repository_url":"https://api.github.com/repos/cssnano/cssnano","labels_url":"https://api.github.com/repos/cssnano/cssnano/issues/638/labels{/name}","comments_url":"https://api.github.com/repos/cssnano/cssnano/issues/638/comments","events_url":"https://api.github.com/repos/cssnano/cssnano/issues/638/events","html_url":"https://github.com/cssnano/cssnano/issues/638","id":370578639,"node_id":"MDU6SXNzdWUzNzA1Nzg2Mzk=","number":638,"title":"Merge-rules conflicts with autoprefixer grid option","user":{"login":"FreekVR","id":417416,"node_id":"MDQ6VXNlcjQxNzQxNg==","avatar_url":"https://avatars1.githubusercontent.com/u/417416?v=4","gravatar_id":"","url":"https://api.github.com/users/FreekVR","html_url":"https://github.com/FreekVR","followers_url":"https://api.github.com/users/FreekVR/followers","following_url":"https://api.github.com/users/FreekVR/following{/other_user}","gists_url":"https://api.github.com/users/FreekVR/gists{/gist_id}","starred_url":"https://api.github.com/users/FreekVR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FreekVR/subscriptions","organizations_url":"https://api.github.com/users/FreekVR/orgs","repos_url":"https://api.github.com/users/FreekVR/repos","events_url":"https://api.github.com/users/FreekVR/events{/privacy}","received_events_url":"https://api.github.com/users/FreekVR/received_events","type":"User","site_admin":false},"labels":[{"id":199585705,"node_id":"MDU6TGFiZWwxOTk1ODU3MDU=","url":"https://api.github.com/repos/cssnano/cssnano/labels/bug","name":"bug","color":"fc2929","default":true},{"id":209268255,"node_id":"MDU6TGFiZWwyMDkyNjgyNTU=","url":"https://api.github.com/repos/cssnano/cssnano/labels/upstream","name":"upstream","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-10-16T12:04:59Z","updated_at":"2018-10-16T23:32:58Z","closed_at":null,"author_association":"NONE","body":"I'm running a postcss stack with both autoprefixer with 'grid: true' on, and running cssnano with the 'default' preset. It appears the  \"mergeRules\" option isn't working correctly with the autoprefixer grid options (I get this error, unless I disable either the mergeRules or the grid option of autoprefixer)\r\n\r\n```\r\nTypeError in plugin \"gulp-postcss\"\r\nMessage:\r\n    Cannot destructure property `name` of 'undefined' or 'null'.\r\nDetails:\r\n    postcssNode: .layout__header{\r\n    -ms-grid-row:1;\r\n    -ms-grid-column:1}\r\n    fileName: frontend/src/assets/styles/app.css\r\n\r\nStack:\r\nTypeError: Cannot destructure property `name` of 'undefined' or 'null'.\r\n    at frontend/src/assets/styles/app.css:1515:1\r\n    at canMerge (frontend/node_modules/postcss-merge-rules/dist/index.js:63:28)\r\n    at frontend/node_modules/postcss-merge-rules/dist/index.js:192:24\r\n    at frontend/node_modules/postcss/lib/container.js:239:18\r\n    at frontend/node_modules/postcss/lib/container.js:135:18\r\n    at AtRule.each (frontend/node_modules/postcss/lib/container.js:101:16)\r\n    at AtRule.walk (frontend/node_modules/postcss/lib/container.js:131:17)\r\n    at frontend/node_modules/postcss/lib/container.js:148:24\r\n    at Root.each (frontend/node_modules/postcss/lib/container.js:101:16)\r\n    at Root.walk (frontend/node_modules/postcss/lib/container.js:131:17)\r\n    at Root.walkRules (frontend/node_modules/postcss/lib/container.js:237:19)\r\n```\r\n\r\nHere's my unprefixed source file:\r\n\r\n```\r\n.layout {\r\n    display: grid;\r\n    grid-template-columns: 1fr;\r\n    grid-template-rows: @navigation-height-mobile auto auto;\r\n    grid-template-areas: 'layout-header' 'layout-main';\r\n    grid-gap: @grid-gap;\r\n\r\n    @media @q-lg-min {\r\n        /** Redeclare entire grid for IE11 autoprefix compatbility **/\r\n        grid-gap: @grid-gap-lg;\r\n        grid-template-columns: 1fr;\r\n        grid-template-areas: 'layout-header' 'layout-main';\r\n        grid-template-rows: @navigation-height-desktop auto auto;\r\n    }\r\n}\r\n\r\n.layout__header {\r\n    grid-area: layout-header;\r\n}\r\n\r\n.layout__main {\r\n    grid-area: layout-main;\r\n}\r\n\r\n.layout__aside {\r\n    grid-area: layout-aside;\r\n}\r\n\r\n.layout__footer {\r\n    grid-area: layout-footer;\r\n    align-self: end;\r\n}\r\n```\r\n\r\nHere's my config (using gulp)\r\n```\r\nconst processors = [\r\n        autoprefixer({\r\n            cascade: false,\r\n            grid: true\r\n        }),\r\n        cssnano({preset: ['default', {\r\n            zindex: false,\r\n            //mergeRules: true\r\n        }]})\r\n    ];\r\n\r\n(...)\r\n.pipe(postcss(processors)) \r\n(...)\r\n```"},"comment":{"url":"https://api.github.com/repos/cssnano/cssnano/issues/comments/430437094","html_url":"https://github.com/cssnano/cssnano/issues/638#issuecomment-430437094","issue_url":"https://api.github.com/repos/cssnano/cssnano/issues/638","id":430437094,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDQzNzA5NA==","user":{"login":"ai","id":19343,"node_id":"MDQ6VXNlcjE5MzQz","avatar_url":"https://avatars1.githubusercontent.com/u/19343?v=4","gravatar_id":"","url":"https://api.github.com/users/ai","html_url":"https://github.com/ai","followers_url":"https://api.github.com/users/ai/followers","following_url":"https://api.github.com/users/ai/following{/other_user}","gists_url":"https://api.github.com/users/ai/gists{/gist_id}","starred_url":"https://api.github.com/users/ai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ai/subscriptions","organizations_url":"https://api.github.com/users/ai/orgs","repos_url":"https://api.github.com/users/ai/repos","events_url":"https://api.github.com/users/ai/events{/privacy}","received_events_url":"https://api.github.com/users/ai/received_events","type":"User","site_admin":false},"created_at":"2018-10-16T23:32:58Z","updated_at":"2018-10-16T23:32:58Z","author_association":"COLLABORATOR","body":"I found mistake"}}
{"actor":{"display_login":"ai"}}