{"action":"opened","issue":{"url":"https://api.github.com/repos/postcss/autoprefixer/issues/988","repository_url":"https://api.github.com/repos/postcss/autoprefixer","labels_url":"https://api.github.com/repos/postcss/autoprefixer/issues/988/labels{/name}","comments_url":"https://api.github.com/repos/postcss/autoprefixer/issues/988/comments","events_url":"https://api.github.com/repos/postcss/autoprefixer/issues/988/events","html_url":"https://github.com/postcss/autoprefixer/issues/988","id":298376230,"number":988,"title":"Unexpected error using @supports and grid-template-areas","user":{"login":"elclanrs","id":1661925,"avatar_url":"https://avatars0.githubusercontent.com/u/1661925?v=4","gravatar_id":"","url":"https://api.github.com/users/elclanrs","html_url":"https://github.com/elclanrs","followers_url":"https://api.github.com/users/elclanrs/followers","following_url":"https://api.github.com/users/elclanrs/following{/other_user}","gists_url":"https://api.github.com/users/elclanrs/gists{/gist_id}","starred_url":"https://api.github.com/users/elclanrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elclanrs/subscriptions","organizations_url":"https://api.github.com/users/elclanrs/orgs","repos_url":"https://api.github.com/users/elclanrs/repos","events_url":"https://api.github.com/users/elclanrs/events{/privacy}","received_events_url":"https://api.github.com/users/elclanrs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-19T19:09:41Z","updated_at":"2018-02-19T19:09:41Z","closed_at":null,"author_association":"NONE","body":"I'm using angular-cli, and after upgrading to 1.7.0 which as far as I know has the postcss update for grid.\r\n\r\nI use the following:\r\n\r\n```\r\n@supports (grid-template-areas: none) {\r\n```\r\n\r\nBut I get this error:\r\n\r\n```\r\nERROR in ./src/app/my-component/my-component.component.scss\r\nModule build failed: TypeError: Cannot read property 'warn' of undefined\r\n    at Declaration.warn (/Users/elclanrs/Documents/component-library/node_modules/postcss/lib/node.js:153:24)\r\n    at GridTemplateAreas.insert (/Users/elclanrs/Documents/component-library/node_modules/autoprefixer/lib/hacks/grid-template-areas.js:121:18)\r\n    at GridTemplateAreas.add (/Users/elclanrs/Documents/component-library/node_modules/autoprefixer/lib/declaration.js:225:21)\r\n    at GridTemplateAreas.process (/Users/elclanrs/Documents/component-library/node_modules/autoprefixer/lib/prefixer.js:168:22)\r\n    at GridTemplateAreas.process (/Users/elclanrs/Documents/component-library/node_modules/autoprefixer/lib/declaration.js:235:41)\r\n    at Supports.prefixed (/Users/elclanrs/Documents/component-library/node_modules/autoprefixer/lib/supports.js:94:50)\r\n    at /Users/elclanrs/Documents/component-library/node_modules/autoprefixer/lib/supports.js:319:39\r\n    at Array.map (<anonymous>)\r\n    at Supports.add (/Users/elclanrs/Documents/component-library/node_modules/autoprefixer/lib/supports.js:317:22)\r\n    at Supports.process (/Users/elclanrs/Documents/component-library/node_modules/autoprefixer/lib/supports.js:344:20)\r\n    at /Users/elclanrs/Documents/component-library/node_modules/autoprefixer/lib/processor.js:44:37\r\n    at /Users/elclanrs/Documents/component-library/node_modules/postcss/lib/container.js:292:28\r\n    at /Users/elclanrs/Documents/component-library/node_modules/postcss/lib/container.js:144:26\r\n    at Root.each (/Users/elclanrs/Documents/component-library/node_modules/postcss/lib/container.js:110:22)\r\n    at Root.walk (/Users/elclanrs/Documents/component-library/node_modules/postcss/lib/container.js:143:21)\r\n    at Root.walkAtRules (/Users/elclanrs/Documents/component-library/node_modules/postcss/lib/container.js:290:25)\r\n```\r\n\r\nIf I use this instead:\r\n\r\n```\r\n@supports (grid-template-areas: '') {\r\n```\r\n\r\nThen it works fine.\r\n\r\nAFAIK `none` is a valid value of `grid-template-areas`. I also tried `initial` but I got the same error.\r\n\r\nAny ideas on what could be causing this error? "}}
{"actor":{"display_login":"elclanrs"}}