{"action":"opened","issue":{"url":"https://api.github.com/repos/NathanWalker/angular-seed-advanced/issues/458","repository_url":"https://api.github.com/repos/NathanWalker/angular-seed-advanced","labels_url":"https://api.github.com/repos/NathanWalker/angular-seed-advanced/issues/458/labels{/name}","comments_url":"https://api.github.com/repos/NathanWalker/angular-seed-advanced/issues/458/comments","events_url":"https://api.github.com/repos/NathanWalker/angular-seed-advanced/issues/458/events","html_url":"https://github.com/NathanWalker/angular-seed-advanced/issues/458","id":250326794,"number":458,"title":"AOT Build with using date-fns","user":{"login":"blaur","id":3765959,"avatar_url":"https://avatars0.githubusercontent.com/u/3765959?v=4","gravatar_id":"","url":"https://api.github.com/users/blaur","html_url":"https://github.com/blaur","followers_url":"https://api.github.com/users/blaur/followers","following_url":"https://api.github.com/users/blaur/following{/other_user}","gists_url":"https://api.github.com/users/blaur/gists{/gist_id}","starred_url":"https://api.github.com/users/blaur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blaur/subscriptions","organizations_url":"https://api.github.com/users/blaur/orgs","repos_url":"https://api.github.com/users/blaur/repos","events_url":"https://api.github.com/users/blaur/events{/privacy}","received_events_url":"https://api.github.com/users/blaur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-15T14:13:45Z","updated_at":"2017-08-15T14:13:45Z","closed_at":null,"body":"Hi everyone,\r\n\r\nHope you are well and might be able to assist me.\r\n\r\nI'm struggling with my aot build after having included date-fns into my project (through angular-calendar). It all builds okay with the normal production build.\r\n\r\nI'm including the functions in my code like this:\r\n```\r\nimport {\r\n  startOfDay,\r\n  subDays,\r\n  addDays,\r\n  endOfMonth,\r\n  isSameDay,\r\n  isSameMonth,\r\n  addWeeks,\r\n  subWeeks,\r\n  addMonths,\r\n  subMonths,\r\n  addHours\r\n} from 'date-fns';\r\n```\r\n\r\nIn my seed.config.ts I am including the lib in the following way (also as illustrated in other examples):\r\n```\r\npaths: {\r\n    ....\r\n   'date-fns': 'node_modules/date-fns/index.js',\r\n\r\npackages: {\r\n    ....\r\n    'date-fns': {\r\n        main: './index.js',\r\n        defaultExtension: 'js'\r\n      }\r\n\r\n```\r\n\r\nEverywhere I read and everyone I ask tells me the above is sufficient for them. But for some reason I am not able to compile it when used in the angular-seed here.\r\n\r\nAny suggestions?\r\n\r\n   "}}
{"actor":{"display_login":"blaur"}}