{"action":"created","issue":{"url":"https://api.github.com/repos/standard-things/esm/issues/154","repository_url":"https://api.github.com/repos/standard-things/esm","labels_url":"https://api.github.com/repos/standard-things/esm/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/standard-things/esm/issues/154/comments","events_url":"https://api.github.com/repos/standard-things/esm/issues/154/events","html_url":"https://github.com/standard-things/esm/issues/154","id":274378830,"number":154,"title":"Module alias is not working","user":{"login":"ChuntheQhai","id":7950415,"avatar_url":"https://avatars3.githubusercontent.com/u/7950415?v=4","gravatar_id":"","url":"https://api.github.com/users/ChuntheQhai","html_url":"https://github.com/ChuntheQhai","followers_url":"https://api.github.com/users/ChuntheQhai/followers","following_url":"https://api.github.com/users/ChuntheQhai/following{/other_user}","gists_url":"https://api.github.com/users/ChuntheQhai/gists{/gist_id}","starred_url":"https://api.github.com/users/ChuntheQhai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChuntheQhai/subscriptions","organizations_url":"https://api.github.com/users/ChuntheQhai/orgs","repos_url":"https://api.github.com/users/ChuntheQhai/repos","events_url":"https://api.github.com/users/ChuntheQhai/events{/privacy}","received_events_url":"https://api.github.com/users/ChuntheQhai/received_events","type":"User","site_admin":false},"labels":[{"id":613130605,"url":"https://api.github.com/repos/standard-things/esm/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-11-16T03:01:19Z","updated_at":"2018-03-28T03:12:58Z","closed_at":"2017-11-16T16:22:22Z","author_association":"NONE","body":"I got \"Cannot find module\" with my @lib on import. Is there way to fix this?\r\n\r\n**Package.json**\r\n```\r\n{...\r\n\"scripts\": {\r\n    \"dev\": \"DB_HOST=localhost:27017 nodemon --trace-warnings -w src --exec \\\"node src/index.js\\\"\",\r\n    \"start\": \"node src/index.js\",\r\n    \"test\": \"eslint src\"\r\n  },\r\n  \"@std/esm\": \"cjs\",\r\n  \"_moduleAliases\": {\r\n    \"@root\": \"./src\",\r\n    \"@api\": \"./src/api\",\r\n    \"@lib\": \"./src/lib\",\r\n    \"@middleware\": \"./src/middleware\",\r\n    \"@models\": \"./src/models\"\r\n  }\r\n...}\r\n```\r\n\r\n**Index.js**\r\n```\r\nrequire = require('@std/esm')(module)\r\nmodule.exports = require('./app.mjs')\r\n```\r\n\r\n**app.mjs**\r\n```\r\nrequire('module-alias/register');\r\nimport http from 'http';\r\n...\r\n```"},"comment":{"url":"https://api.github.com/repos/standard-things/esm/issues/comments/376746863","html_url":"https://github.com/standard-things/esm/issues/154#issuecomment-376746863","issue_url":"https://api.github.com/repos/standard-things/esm/issues/154","id":376746863,"user":{"login":"jdalton","id":4303,"avatar_url":"https://avatars2.githubusercontent.com/u/4303?v=4","gravatar_id":"","url":"https://api.github.com/users/jdalton","html_url":"https://github.com/jdalton","followers_url":"https://api.github.com/users/jdalton/followers","following_url":"https://api.github.com/users/jdalton/following{/other_user}","gists_url":"https://api.github.com/users/jdalton/gists{/gist_id}","starred_url":"https://api.github.com/users/jdalton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdalton/subscriptions","organizations_url":"https://api.github.com/users/jdalton/orgs","repos_url":"https://api.github.com/users/jdalton/repos","events_url":"https://api.github.com/users/jdalton/events{/privacy}","received_events_url":"https://api.github.com/users/jdalton/received_events","type":"User","site_admin":false},"created_at":"2018-03-28T03:12:58Z","updated_at":"2018-03-28T03:12:58Z","author_association":"OWNER","body":"> did this ever address the issue\r\n\r\nYes. \r\n\r\n> It seems that the latest esm versions has regressed this behavior...\r\n\r\nYep. I was just going to post that. It looks like I regressed it when I tried to cache a bit more across loader instances. I'll fix that up tonight."}}
{"actor":{"display_login":"jdalton"}}