{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/7227","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-js","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/7227/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/7227/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/7227/events","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/7227","id":356193101,"node_id":"MDU6SXNzdWUzNTYxOTMxMDE=","number":7227,"title":"Initializing new Map","user":{"login":"benydc","id":19665791,"node_id":"MDQ6VXNlcjE5NjY1Nzkx","avatar_url":"https://avatars1.githubusercontent.com/u/19665791?v=4","gravatar_id":"","url":"https://api.github.com/users/benydc","html_url":"https://github.com/benydc","followers_url":"https://api.github.com/users/benydc/followers","following_url":"https://api.github.com/users/benydc/following{/other_user}","gists_url":"https://api.github.com/users/benydc/gists{/gist_id}","starred_url":"https://api.github.com/users/benydc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benydc/subscriptions","organizations_url":"https://api.github.com/users/benydc/orgs","repos_url":"https://api.github.com/users/benydc/repos","events_url":"https://api.github.com/users/benydc/events{/privacy}","received_events_url":"https://api.github.com/users/benydc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-01T10:51:33Z","updated_at":"2018-09-04T08:40:28Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nHello! Thanks for contributing.  For the fastest response and resolution, please:\r\n\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. For feature requests, please use https://github.com/mapbox/mapbox-gl-js/issues/new?template=Feature_request.md instead.  Direct all other questions to https://stackoverflow.com/questions/tagged/mapbox-gl-js\r\n\r\n-->\r\n\r\n**mapbox-gl-js version**: 0.48.0\r\n\r\n**browser**: Firefox\r\n\r\n### Steps to Trigger Behavior\r\n\r\n 1. import Map `import { Map, NavigationControl, Popup } from 'mapbox-gl';`\r\n 2. I initialize the new Map with correct settings: this.map = new Map({ ... });\r\n 3. I receive error on the console log about `Uncaught TypeError: Map is not a constructor`\r\n\r\nI'm using Typescript.\r\n\r\n### Link to Demonstration\r\n\r\n<!--\r\nProviding a minimal, complete, verifiable demonstration *dramatically* improves maintainers' and other community members' ability to understand and address the problem you're reporting. (See https://stackoverflow.com/help/mcve for guidelines on creating an effective example.)\r\n-->\r\n\r\nhttps://jsbin.com/\r\n\r\n### Expected Behavior\r\nThis has worked fine on 0.47.0 release, I don't understand what changed.\r\n\r\n### Actual Behavior\r\n"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/comments/418288024","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/7227#issuecomment-418288024","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/7227","id":418288024,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODI4ODAyNA==","user":{"login":"benydc","id":19665791,"node_id":"MDQ6VXNlcjE5NjY1Nzkx","avatar_url":"https://avatars1.githubusercontent.com/u/19665791?v=4","gravatar_id":"","url":"https://api.github.com/users/benydc","html_url":"https://github.com/benydc","followers_url":"https://api.github.com/users/benydc/followers","following_url":"https://api.github.com/users/benydc/following{/other_user}","gists_url":"https://api.github.com/users/benydc/gists{/gist_id}","starred_url":"https://api.github.com/users/benydc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benydc/subscriptions","organizations_url":"https://api.github.com/users/benydc/orgs","repos_url":"https://api.github.com/users/benydc/repos","events_url":"https://api.github.com/users/benydc/events{/privacy}","received_events_url":"https://api.github.com/users/benydc/received_events","type":"User","site_admin":false},"created_at":"2018-09-04T08:40:28Z","updated_at":"2018-09-04T08:40:28Z","author_association":"NONE","body":"@mourner I got it working the dirty way, I was not able to add the mapbox-gl as library dependency to my project, because it was always failing with: `Trace warning: ../node_modules/mapbox-gl/dist/mapbox-gl.js has more than one anonymous define. May be a built file from another build system like, Ender. Skipping normalization.` I think it's because of the custom define function with worker for AMD. \r\n\r\nI then chose to include the library in the prepend section or aurelia bundle, as global dependency and removed the ```\r\nexport = mapboxgl;\r\nexport as namespace mapboxgl;\r\n``` from type definition file. \r\n\r\nIt will be great if someone has a solution on how to get this working the right way."}}
{"actor":{"display_login":"benydc"}}