{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue/issues/8861","repository_url":"https://api.github.com/repos/vuejs/vue","labels_url":"https://api.github.com/repos/vuejs/vue/issues/8861/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue/issues/8861/comments","events_url":"https://api.github.com/repos/vuejs/vue/issues/8861/events","html_url":"https://github.com/vuejs/vue/issues/8861","id":365017581,"node_id":"MDU6SXNzdWUzNjUwMTc1ODE=","number":8861,"title":"Optional Chaining Error with Babel","user":{"login":"tkrause","id":1427628,"node_id":"MDQ6VXNlcjE0Mjc2Mjg=","avatar_url":"https://avatars2.githubusercontent.com/u/1427628?v=4","gravatar_id":"","url":"https://api.github.com/users/tkrause","html_url":"https://github.com/tkrause","followers_url":"https://api.github.com/users/tkrause/followers","following_url":"https://api.github.com/users/tkrause/following{/other_user}","gists_url":"https://api.github.com/users/tkrause/gists{/gist_id}","starred_url":"https://api.github.com/users/tkrause/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkrause/subscriptions","organizations_url":"https://api.github.com/users/tkrause/orgs","repos_url":"https://api.github.com/users/tkrause/repos","events_url":"https://api.github.com/users/tkrause/events{/privacy}","received_events_url":"https://api.github.com/users/tkrause/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-28T19:45:53Z","updated_at":"2018-09-28T21:16:13Z","closed_at":null,"author_association":"NONE","body":"### Version\r\n2.5.17\r\n\r\n### Reproduction link\r\n[https://codesandbox.io/s/m674vkw2j](https://codesandbox.io/s/m674vkw2j)\r\n\r\n\r\n\r\n\r\n\r\n### Steps to reproduce\r\nUse the optional chaining operator in a template:\r\n\r\n{{ user?.id }}\r\n\r\n### What is expected?\r\nOutput the users id in the template or blank for undefined\r\n\r\n### What is actually happening?\r\n- invalid expression: Unexpected token . in    \"\\n                \" _s(user?.id) \"\\n            \"  Raw expression: {{ user?.id }}\r\n\r\n---\r\nOptional chaining works just fine in the script section of a SFC Vue component but does not work in the template section.\r\n\r\nFor reference, this is in an Nuxt.js 2.0 project stock settings with the babel optional chaining plugin\r\n\r\nVersion is actually 15.4.2 with Vue 2.5.17\r\n\r\n<!-- generated by vue-issues. DO NOT REMOVE -->"},"comment":{"url":"https://api.github.com/repos/vuejs/vue/issues/comments/425568461","html_url":"https://github.com/vuejs/vue/issues/8861#issuecomment-425568461","issue_url":"https://api.github.com/repos/vuejs/vue/issues/8861","id":425568461,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTU2ODQ2MQ==","user":{"login":"posva","id":664177,"node_id":"MDQ6VXNlcjY2NDE3Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/664177?v=4","gravatar_id":"","url":"https://api.github.com/users/posva","html_url":"https://github.com/posva","followers_url":"https://api.github.com/users/posva/followers","following_url":"https://api.github.com/users/posva/following{/other_user}","gists_url":"https://api.github.com/users/posva/gists{/gist_id}","starred_url":"https://api.github.com/users/posva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/posva/subscriptions","organizations_url":"https://api.github.com/users/posva/orgs","repos_url":"https://api.github.com/users/posva/repos","events_url":"https://api.github.com/users/posva/events{/privacy}","received_events_url":"https://api.github.com/users/posva/received_events","type":"User","site_admin":false},"created_at":"2018-09-28T21:16:13Z","updated_at":"2018-09-28T21:16:13Z","author_association":"MEMBER","body":"Babel is actually not used for in-template strings: See https://github.com/vuejs/vue/issues/6307\r\nNot sure if anything changed regarding this 🤔 "}}
{"actor":{"display_login":"posva"}}