{"action":"created","issue":{"url":"https://api.github.com/repos/bazelbuild/rules_closure/issues/160","repository_url":"https://api.github.com/repos/bazelbuild/rules_closure","labels_url":"https://api.github.com/repos/bazelbuild/rules_closure/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/rules_closure/issues/160/comments","events_url":"https://api.github.com/repos/bazelbuild/rules_closure/issues/160/events","html_url":"https://github.com/bazelbuild/rules_closure/issues/160","id":186089243,"number":160,"title":"ES6 imports with ./ do not work","user":{"login":"pcj","id":50580,"avatar_url":"https://avatars0.githubusercontent.com/u/50580?v=3","gravatar_id":"","url":"https://api.github.com/users/pcj","html_url":"https://github.com/pcj","followers_url":"https://api.github.com/users/pcj/followers","following_url":"https://api.github.com/users/pcj/following{/other_user}","gists_url":"https://api.github.com/users/pcj/gists{/gist_id}","starred_url":"https://api.github.com/users/pcj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcj/subscriptions","organizations_url":"https://api.github.com/users/pcj/orgs","repos_url":"https://api.github.com/users/pcj/repos","events_url":"https://api.github.com/users/pcj/events{/privacy}","received_events_url":"https://api.github.com/users/pcj/received_events","type":"User","site_admin":false},"labels":[{"id":340028267,"url":"https://api.github.com/repos/bazelbuild/rules_closure/labels/bug","name":"bug","color":"fc2929","default":true},{"id":346517631,"url":"https://api.github.com/repos/bazelbuild/rules_closure/labels/P2","name":"P2","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"jart","id":49262,"avatar_url":"https://avatars2.githubusercontent.com/u/49262?v=3","gravatar_id":"","url":"https://api.github.com/users/jart","html_url":"https://github.com/jart","followers_url":"https://api.github.com/users/jart/followers","following_url":"https://api.github.com/users/jart/following{/other_user}","gists_url":"https://api.github.com/users/jart/gists{/gist_id}","starred_url":"https://api.github.com/users/jart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jart/subscriptions","organizations_url":"https://api.github.com/users/jart/orgs","repos_url":"https://api.github.com/users/jart/repos","events_url":"https://api.github.com/users/jart/events{/privacy}","received_events_url":"https://api.github.com/users/jart/received_events","type":"User","site_admin":false},"assignees":[{"login":"jart","id":49262,"avatar_url":"https://avatars2.githubusercontent.com/u/49262?v=3","gravatar_id":"","url":"https://api.github.com/users/jart","html_url":"https://github.com/jart","followers_url":"https://api.github.com/users/jart/followers","following_url":"https://api.github.com/users/jart/following{/other_user}","gists_url":"https://api.github.com/users/jart/gists{/gist_id}","starred_url":"https://api.github.com/users/jart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jart/subscriptions","organizations_url":"https://api.github.com/users/jart/orgs","repos_url":"https://api.github.com/users/jart/repos","events_url":"https://api.github.com/users/jart/events{/privacy}","received_events_url":"https://api.github.com/users/jart/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-10-29T17:06:09Z","updated_at":"2017-06-20T22:18:23Z","closed_at":null,"body":"What am I doing wrong here?  It seems like this should work based on https://github.com/bazelbuild/rules_closure/tree/master/closure/compiler/test/strict_dependency_checking. As dependency strictness checking is done by rules_closure itself (outside of closure compiler itself), I wonder, did I miss something?\n\n``` js\n// app.js\nclass App {\n   sayHello() { return \"Hello!\"; }\n}\nexport default App;\n```\n\n``` js\n// main.js\nimport App from `./app`;\n// does not work either:\n//import App from `app`;\n//import App from `path/to/package/app`;\n\nvar app = new App();\napp.sayHello();\n```\n\n``` sh\nERROR: strictDependencies CR_NOT_PROVIDED - Namespace not provided by any srcs or direct deps of //:main.\nimport App from './app';\n                ^\n\n1 error(s), 0 warning(s)\n```\n\n``` python\n\nclosure_js_library(\n    name = \"app\",\n    srcs = [\n        \"app.js\",\n    ],\n    deps = [\n        \"@io_bazel_rules_closure//closure/library\",\n    ],\n    language = 'ECMASCRIPT6_STRICT',\n)\n\nclosure_js_library(\n    name = \"main\",\n    srcs = [\n        \"main.js\",\n    ],\n    deps = [\n        \":app\",\n        \"@io_bazel_rules_closure//closure/library\",\n    ],\n    language = 'ECMASCRIPT6_STRICT',\n)\n\nclosure_js_binary(\n    name = \"bin\",\n    deps = [\"main\"],\n    language = 'ECMASCRIPT6_STRICT',\n)\n```\n\nHere's another example that I wonder if it would compile with rules_closure: https://github.com/ChadKillingsworth/geolocation-marker/blob/master/src/geolocation-marker.js (@ChadKillingsworth)\n"},"comment":{"url":"https://api.github.com/repos/bazelbuild/rules_closure/issues/comments/309907889","html_url":"https://github.com/bazelbuild/rules_closure/issues/160#issuecomment-309907889","issue_url":"https://api.github.com/repos/bazelbuild/rules_closure/issues/160","id":309907889,"user":{"login":"ChadKillingsworth","id":1247639,"avatar_url":"https://avatars1.githubusercontent.com/u/1247639?v=3","gravatar_id":"","url":"https://api.github.com/users/ChadKillingsworth","html_url":"https://github.com/ChadKillingsworth","followers_url":"https://api.github.com/users/ChadKillingsworth/followers","following_url":"https://api.github.com/users/ChadKillingsworth/following{/other_user}","gists_url":"https://api.github.com/users/ChadKillingsworth/gists{/gist_id}","starred_url":"https://api.github.com/users/ChadKillingsworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChadKillingsworth/subscriptions","organizations_url":"https://api.github.com/users/ChadKillingsworth/orgs","repos_url":"https://api.github.com/users/ChadKillingsworth/repos","events_url":"https://api.github.com/users/ChadKillingsworth/events{/privacy}","received_events_url":"https://api.github.com/users/ChadKillingsworth/received_events","type":"User","site_admin":false},"created_at":"2017-06-20T22:18:23Z","updated_at":"2017-06-20T22:18:23Z","body":"Module path names that used to be `some/path/to/module.js` with `LEGACY` would now be `/some/path/to/module.js` with `BROWSER` and you may need to add `--js_module_root` flags if there are additional roots beyond the compilation root.\r\n\r\nAnd of course you have to be able to consume relative paths from one script to another as well."}}
{"actor":{"display_login":"ChadKillingsworth"}}