{"action":"created","issue":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/435","labels_url":"https://api.github.com/repos/systemjs/systemjs/issues/435/labels{/name}","comments_url":"https://api.github.com/repos/systemjs/systemjs/issues/435/comments","events_url":"https://api.github.com/repos/systemjs/systemjs/issues/435/events","html_url":"https://github.com/systemjs/systemjs/issues/435","id":72744013,"number":435,"title":"Tutorial / Working Example / Reference?","user":{"login":"bucaran","id":8317250,"avatar_url":"https://avatars.githubusercontent.com/u/8317250?v=3","gravatar_id":"","url":"https://api.github.com/users/bucaran","html_url":"https://github.com/bucaran","followers_url":"https://api.github.com/users/bucaran/followers","following_url":"https://api.github.com/users/bucaran/following{/other_user}","gists_url":"https://api.github.com/users/bucaran/gists{/gist_id}","starred_url":"https://api.github.com/users/bucaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bucaran/subscriptions","organizations_url":"https://api.github.com/users/bucaran/orgs","repos_url":"https://api.github.com/users/bucaran/repos","events_url":"https://api.github.com/users/bucaran/events{/privacy}","received_events_url":"https://api.github.com/users/bucaran/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/systemjs/systemjs/labels/support","name":"support","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-05-03T04:06:09Z","updated_at":"2015-05-03T15:51:06Z","closed_at":"2015-05-03T15:51:06Z","body":"I don't know if I am still missing something ( you know a nice working example / tutorial to learn would have been useful) but here is my situation.\r\n\r\nUsing `Babel` I am trying to use `System.import` to load some modules conditionally, kind of like:\r\n```\r\nSystem.import(argv.logger || \"./lib/logger\").then(...)\r\n```\r\n\r\nBut I am getting all kind of _path not found errors_. After I install `systemjs` and including it on my source:\r\n\r\n```js\r\nimport System from \"systemjs\"\r\n```\r\n\r\nI know `System` is correctly referring to the polyfill, but the path above `\"./lib/logger\"` can't be resolved unless I manually type in `node_modules/<MY PKG>/lib/logger` which is crazy.\r\n\r\nEven after successfully loading it the that way, I still get the following error:\r\n\r\n```\r\n[Error: Error loading \"babel-runtime/helpers/interop-require-wildcard\" at file:\r\n$HOME/<PROJECT>/babel-runtime/helpers/interop-require-wildcard.js\r\n\r\nError loading \"babel-runtime/helpers/interop-require-wildcard\" from \"node_modules/<MY PACKAGE>/lib/logger\" at file: \r\n$HOME/<PROJECT>/node_modules/<MY PACKAGE>/lib/logger.js\r\n\r\nENOENT, open '$HOME/<PROJECT>/babel-runtime/helpers/interop-require-wildcard.js']\r\n\r\n  errno: -2,\r\n  code: 'ENOENT',\r\n  path: '/Users/b/.d/<PROJECT>/babel-runtime/helpers/interop-require-wildcard.js' }\r\n```"},"comment":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/comments/98496696","html_url":"https://github.com/systemjs/systemjs/issues/435#issuecomment-98496696","issue_url":"https://api.github.com/repos/systemjs/systemjs/issues/435","id":98496696,"user":{"login":"bucaran","id":8317250,"avatar_url":"https://avatars.githubusercontent.com/u/8317250?v=3","gravatar_id":"","url":"https://api.github.com/users/bucaran","html_url":"https://github.com/bucaran","followers_url":"https://api.github.com/users/bucaran/followers","following_url":"https://api.github.com/users/bucaran/following{/other_user}","gists_url":"https://api.github.com/users/bucaran/gists{/gist_id}","starred_url":"https://api.github.com/users/bucaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bucaran/subscriptions","organizations_url":"https://api.github.com/users/bucaran/orgs","repos_url":"https://api.github.com/users/bucaran/repos","events_url":"https://api.github.com/users/bucaran/events{/privacy}","received_events_url":"https://api.github.com/users/bucaran/received_events","type":"User","site_admin":false},"created_at":"2015-05-03T15:51:06Z","updated_at":"2015-05-03T15:51:06Z","body":"> If you build a library for consumption in other projects, then you likely shouldn't use SystemJS for compatibility reasons.\r\n\r\n...no one told me! :smile: \r\n\r\nThanks for the detailed response :+1: "}}