{"id":15832402,"url":"https://github.com/splincode/angular5-demo","last_synced_at":"2025-04-01T12:11:20.341Z","repository":{"id":102321012,"uuid":"109503458","full_name":"splincode/angular5-demo","owner":"splincode","description":"example angular5","archived":false,"fork":false,"pushed_at":"2018-11-28T10:05:15.000Z","size":122,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-06T12:42:07.808Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/splincode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-04T14:51:20.000Z","updated_at":"2019-06-05T18:03:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"193b644a-4396-468f-9717-9af4bd178a31","html_url":"https://github.com/splincode/angular5-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splincode%2Fangular5-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splincode%2Fangular5-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splincode%2Fangular5-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splincode%2Fangular5-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/splincode","download_url":"https://codeload.github.com/splincode/angular5-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246635983,"owners_count":20809333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-05T12:41:59.555Z","updated_at":"2025-04-01T12:11:20.293Z","avatar_url":"https://github.com/splincode.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular5\n\n```bash\nnpm install\nnpm install -g http-server\n```\n\n## AOT mode\n\n```bash\nng build --aot --prod\ncd dist/\nhttp-server\n# open in browser http://127.0.0.1:8081\n```\n\n![](https://habrastorage.org/webt/_u/8r/g_/_u8rg_tlgmmfjmcvxay8mxy98pi.png)\n\n## JIT mode (Problem)\n\n```bash\nng build --no-aot --prod\ncd dist/\nhttp-server\n# open in browser http://127.0.0.1:8081\n```\n\n```text\nmain.c90f048daaa26da75376.bundle.js:1 Uncaught Error: Unexpected value 't' imported by the module 't'. Please add a @NgModule annotation.\n    at p (main.c90f048daaa26da75376.bundle.js:1)\n    at main.c90f048daaa26da75376.bundle.js:1\n    at Array.forEach (\u003canonymous\u003e)\n    at t.getNgModuleMetadata (main.c90f048daaa26da75376.bundle.js:1)\n    at t._loadModules (main.c90f048daaa26da75376.bundle.js:1)\n    at t._compileModuleAndComponents (main.c90f048daaa26da75376.bundle.js:1)\n    at t.compileModuleAsync (main.c90f048daaa26da75376.bundle.js:1)\n    at t.compileModuleAsync (main.c90f048daaa26da75376.bundle.js:1)\n    at t.LMZF.t.bootstrapModule (main.c90f048daaa26da75376.bundle.js:1)\n    at Object.cDNt (main.c90f048daaa26da75376.bundle.js:1)\n```\n\n\n## JIT mode (Fix Problem)\n\n```bash\nng build --prod --aot=false --build-optimizer=false\ncd dist/\nhttp-server\n# open in browser http://127.0.0.1:8081\n```\n\n![](https://habrastorage.org/webt/_u/8r/g_/_u8rg_tlgmmfjmcvxay8mxy98pi.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplincode%2Fangular5-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsplincode%2Fangular5-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplincode%2Fangular5-demo/lists"}