{"id":18686811,"url":"https://github.com/leon/bug-ng-bootstrap-aot-build","last_synced_at":"2025-11-08T00:30:32.813Z","repository":{"id":142075554,"uuid":"85930089","full_name":"leon/bug-ng-bootstrap-aot-build","owner":"leon","description":"Bug report for ng-bootstrap failing AOT build","archived":false,"fork":false,"pushed_at":"2017-03-23T09:27:11.000Z","size":62,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-28T00:43:29.242Z","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/leon.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-03-23T09:18:56.000Z","updated_at":"2017-03-23T09:23:10.000Z","dependencies_parsed_at":"2023-07-09T05:31:18.348Z","dependency_job_id":null,"html_url":"https://github.com/leon/bug-ng-bootstrap-aot-build","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/leon%2Fbug-ng-bootstrap-aot-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leon%2Fbug-ng-bootstrap-aot-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leon%2Fbug-ng-bootstrap-aot-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leon%2Fbug-ng-bootstrap-aot-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leon","download_url":"https://codeload.github.com/leon/bug-ng-bootstrap-aot-build/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239541853,"owners_count":19656103,"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-11-07T10:29:12.324Z","updated_at":"2025-11-08T00:30:32.732Z","avatar_url":"https://github.com/leon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bug when building for production\n\n# Developing works\n\n```bash\nyarn start\n```\n\n```\n$ ng serve \n** NG Live Development Server is running on http://localhost:4200 **\nHash: 888ec32125e57675671c                                                              \nTime: 8119ms\nchunk    {0} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 158 kB {4} [initial] [rendered]\nchunk    {1} main.bundle.js, main.bundle.js.map (main) 3.82 kB {3} [initial] [rendered]\nchunk    {2} styles.bundle.js, styles.bundle.js.map (styles) 9.77 kB {4} [initial] [rendered]\nchunk    {3} vendor.bundle.js, vendor.bundle.js.map (vendor) 2.57 MB [initial] [rendered]\nchunk    {4} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered]\nwebpack: Compiled successfully.\n```\n\n\n# Build with AOT fails\n\n```bash\nyarn build\n```\n\n```\n$ ng build --aot \n 10% building modules 3/3 modules 0 activeCould not resolve module 'function toString() { [native code] }' relative to file /Users/leon/Temp/bug-aot-build/node_modules/@ng-bootstrap/ng-bootstrap/util/util.d.ts\nHash: ffa896c7e882276dae4e                                                              \nTime: 2665ms\nchunk    {0} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 158 kB {4} [initial] [rendered]\nchunk    {1} styles.bundle.js, styles.bundle.js.map (styles) 9.77 kB {4} [initial] [rendered]\nchunk    {2} main.bundle.js, main.bundle.js.map (main) 1.09 kB {3} [initial] [rendered]\nchunk    {3} vendor.bundle.js, vendor.bundle.js.map (vendor) 805 kB [initial] [rendered]\nchunk    {4} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered]\n\nERROR in m.replace is not a function\n\nERROR in ./src/main.ts\nModule not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in '/Users/leon/Temp/bug-aot-build/src'\n @ ./src/main.ts 4:0-74\n @ multi ./src/main.ts\nerror Command failed with exit code 1.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleon%2Fbug-ng-bootstrap-aot-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleon%2Fbug-ng-bootstrap-aot-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleon%2Fbug-ng-bootstrap-aot-build/lists"}