{"action":"opened","issue":{"url":"https://api.github.com/repos/maptalks/maptalks.mapboxgl/issues/7","repository_url":"https://api.github.com/repos/maptalks/maptalks.mapboxgl","labels_url":"https://api.github.com/repos/maptalks/maptalks.mapboxgl/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/maptalks/maptalks.mapboxgl/issues/7/comments","events_url":"https://api.github.com/repos/maptalks/maptalks.mapboxgl/issues/7/events","html_url":"https://github.com/maptalks/maptalks.mapboxgl/issues/7","id":358450920,"node_id":"MDU6SXNzdWUzNTg0NTA5MjA=","number":7,"title":"ES6 Import","user":{"login":"jakob-fuchs","id":1150242,"node_id":"MDQ6VXNlcjExNTAyNDI=","avatar_url":"https://avatars1.githubusercontent.com/u/1150242?v=4","gravatar_id":"","url":"https://api.github.com/users/jakob-fuchs","html_url":"https://github.com/jakob-fuchs","followers_url":"https://api.github.com/users/jakob-fuchs/followers","following_url":"https://api.github.com/users/jakob-fuchs/following{/other_user}","gists_url":"https://api.github.com/users/jakob-fuchs/gists{/gist_id}","starred_url":"https://api.github.com/users/jakob-fuchs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakob-fuchs/subscriptions","organizations_url":"https://api.github.com/users/jakob-fuchs/orgs","repos_url":"https://api.github.com/users/jakob-fuchs/repos","events_url":"https://api.github.com/users/jakob-fuchs/events{/privacy}","received_events_url":"https://api.github.com/users/jakob-fuchs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-10T03:07:35Z","updated_at":"2018-09-10T03:07:35Z","closed_at":null,"author_association":"NONE","body":"I'm trying to import the MapboxGL plugin the following way:\r\n\r\n```javascript\r\n  import * as MapTalks from 'maptalks/dist/maptalks';\r\n  import 'maptalks/dist/maptalks.css';\r\n  import { MapboxglLayer } from 'maptalks.mapboxgl';\r\n```\r\n\r\nGetting the following error message:\r\n\r\n`./node_modules/maptalks.mapboxgl/dist/maptalks.mapboxgl.es.js\r\nModule not found: Error: Can't resolve 'mapboxgl' in '/home/xxx/xxx/xxx/app/node_modules/maptalks.mapboxgl/dist'`\r\n\r\nAny ideas why that is not working?"}}
{"actor":{"display_login":"jakob-fuchs"}}