{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/4463","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-js","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/4463/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/4463/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/4463/events","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/4463","id":215666653,"number":4463,"title":"Require mapbox-gl in Nuxt.js project","user":{"login":"martinrisseeuw","id":8780559,"avatar_url":"https://avatars2.githubusercontent.com/u/8780559?v=4","gravatar_id":"","url":"https://api.github.com/users/martinrisseeuw","html_url":"https://github.com/martinrisseeuw","followers_url":"https://api.github.com/users/martinrisseeuw/followers","following_url":"https://api.github.com/users/martinrisseeuw/following{/other_user}","gists_url":"https://api.github.com/users/martinrisseeuw/gists{/gist_id}","starred_url":"https://api.github.com/users/martinrisseeuw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinrisseeuw/subscriptions","organizations_url":"https://api.github.com/users/martinrisseeuw/orgs","repos_url":"https://api.github.com/users/martinrisseeuw/repos","events_url":"https://api.github.com/users/martinrisseeuw/events{/privacy}","received_events_url":"https://api.github.com/users/martinrisseeuw/received_events","type":"User","site_admin":false},"labels":[{"id":445524842,"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/labels/needs%20information%20:pray:","name":"needs information :pray:","color":"f9d0c4","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-03-21T08:51:45Z","updated_at":"2018-05-04T09:44:24Z","closed_at":"2017-03-28T14:32:51Z","author_association":"NONE","body":"<!--\r\nHello! Thanks for contributing. \r\n\r\nIf you are reporting a bug, please:\r\n - Make the issue title a succinct but specific description of the unexpected behavior. Bad: \"Map rotation is broken\". Good: \"map.setBearing(...) throws a TypeError for negative values\"\r\n - Include a link to a minimal demonstration of the bug. We recommend using https://jsbin.com\r\n - Ensure you can reproduce the bug using the latest release.\r\n - Check the console for relevant errors and warnings\r\n - Only post to report a bug or request a feature. Direct all other questions to https://stackoverflow.com/questions/tagged/mapbox-gl-js\r\n \r\nIf you are requesting a new feature or suggesting a big change, please:\r\n - Copy the Mapbox GL RFC template into this ticket and fill out as much as you can https://raw.githubusercontent.com/mapbox/mapbox-gl-js/master/RFC_TEMPLATE.md\r\n - Make the issue title a succinct but specific description of your use case or the desired functionality. Bad: \"More clustering options\". Good: \"Compute and expose aggregated values when clustering GeoJSON\".\r\n - If a change to shaders or the style specification is required, clearly mark the issue as a cross-platform issue so that this project’s maintainers know to apply the “cross platform” label.\r\n-->\r\n\r\n**mapbox-gl-js version**:\r\n\r\nI dedicated a repository to this issue:\r\nhttps://github.com/martinrisseeuw/vue-mapbox-gl-test\r\n\r\n### Steps to Trigger Behavior\r\n\r\n 1. npm install\r\n 2. npm run dev\r\n\r\n### Expected Behavior\r\n\r\nLoad the map correctly\r\n\r\n### Actual Behavior\r\nIn pages/index.vue I require the mapbox-gl library unfortunatly this crashes the application. When saving the project returns an error:\r\n\r\n```\r\nVue.js error\r\n\r\nReferenceError: self is not defined\r\n    at Object.194 (__vue_ssr_bundle__:3871:29)\r\n    at s (__vue_ssr_bundle__:3474:602)\r\n    at __vue_ssr_bundle__:3474:653\r\n    at Object.192../window (__vue_ssr_bundle__:3867:25)\r\n    at s (__vue_ssr_bundle__:3474:602)\r\n    at __vue_ssr_bundle__:3474:653\r\n    at Object.65.../package.json (__vue_ssr_bundle__:3612:26)\r\n    at s (__vue_ssr_bundle__:3474:602)\r\n    at e (__vue_ssr_bundle__:3474:773)\r\n    at __vue_ssr_bundle__:3474:791\r\n```\r\n\r\nI'm not sure if it's a VUE.JS error or an error that is know to you when you require mapbox-gl (0.34.0). \r\n"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/comments/386552634","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/4463#issuecomment-386552634","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/4463","id":386552634,"user":{"login":"martinrisseeuw","id":8780559,"avatar_url":"https://avatars2.githubusercontent.com/u/8780559?v=4","gravatar_id":"","url":"https://api.github.com/users/martinrisseeuw","html_url":"https://github.com/martinrisseeuw","followers_url":"https://api.github.com/users/martinrisseeuw/followers","following_url":"https://api.github.com/users/martinrisseeuw/following{/other_user}","gists_url":"https://api.github.com/users/martinrisseeuw/gists{/gist_id}","starred_url":"https://api.github.com/users/martinrisseeuw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinrisseeuw/subscriptions","organizations_url":"https://api.github.com/users/martinrisseeuw/orgs","repos_url":"https://api.github.com/users/martinrisseeuw/repos","events_url":"https://api.github.com/users/martinrisseeuw/events{/privacy}","received_events_url":"https://api.github.com/users/martinrisseeuw/received_events","type":"User","site_admin":false},"created_at":"2018-05-04T09:44:24Z","updated_at":"2018-05-04T09:44:24Z","author_association":"NONE","body":"@ajhaupt7 we had it running in dev and production. Here you can see how we added it: https://gist.github.com/martinrisseeuw/4943a180632e8ec95a45c5aec4061db8"}}
{"actor":{"display_login":"martinrisseeuw"}}