Title: platform-server errors with ivy-ngcc - UMD module - Angular 9.0.0-rc.7 · Issue #34544 · angular/angular · GitHub
Open Graph Title: platform-server errors with ivy-ngcc - UMD module - Angular 9.0.0-rc.7 · Issue #34544 · angular/angular
X Title: platform-server errors with ivy-ngcc - UMD module - Angular 9.0.0-rc.7 · Issue #34544 · angular/angular
Description: 🐞 bug report Affected Package The issue is caused by package @angular/platform-server Is this a regression? Yes, the previous version in which this bug was not present was: @angular/platform-server@9.0.0-rc.6 Description When trying to c...
Open Graph Description: 🐞 bug report Affected Package The issue is caused by package @angular/platform-server Is this a regression? Yes, the previous version in which this bug was not present was: @angular/platform-server...
X Description: 🐞 bug report Affected Package The issue is caused by package @angular/platform-server Is this a regression? Yes, the previous version in which this bug was not present was: @angular/platform-server...
Opengraph URL: https://github.com/angular/angular/issues/34544
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"platform-server errors with ivy-ngcc - UMD module - Angular 9.0.0-rc.7","articleBody":"# 🐞 bug report\r\n\r\n### Affected Package\r\nThe issue is caused by package @angular/platform-server\r\n\r\n### Is this a regression?\r\n\r\nYes, the previous version in which this bug was not present was: @angular/platform-server@9.0.0-rc.6\r\n\r\n\r\n### Description\r\n\r\nWhen trying to compile my application with Ivy, I get errors on ivy ngcc for platform-server when compiling for umd bundles (for SSR)\r\n\r\n## 🔬 Minimal Reproduction\r\nUpdate any project to latest version of Angular (9.0.0-rc.7).\r\n\r\nAdd following config to `angular.json`:\r\n\r\n\r\n```\r\n\"server\": {\r\n \"builder\": \"@angular-devkit/build-angular:server\",\r\n \"options\": {\r\n \"outputPath\": \"dist-server\",\r\n \"main\": \"src/main.server.ts\",\r\n \"tsConfig\": \"src/tsconfig.server.json\"\r\n },\r\n \"configurations\": {\r\n \"production\": {\r\n \"optimization\": true,\r\n \"outputHashing\": \"media\",\r\n \"sourceMap\": false,\r\n \"namedChunks\": false,\r\n \"extractLicenses\": true,\r\n \"vendorChunk\": false,\r\n \"bundleDependencies\": \"all\",\r\n \"fileReplacements\": [\r\n {\r\n \"replace\": \"src/environments/environment.ts\",\r\n \"with\": \"src/environments/environment.prod.ts\"\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n```\r\n\r\nThen run command:\r\n\r\n`ng run MyProject:server:production`\r\n\r\n\r\n## 🔥 Exception or Error\r\n\u003cpre>\u003ccode>\r\nCompiling @angular/platform-server : main as umd\r\nHash: f0b9625353a4d2f5af81\r\nTime: 12116ms\r\nBuilt at: 12/23/2019 8:02:36 PM\r\n Asset Size Chunks Chunk Names\r\nmain.js 1.75 KiB 0 main\r\nEntrypoint main = main.js\r\nchunk {0} main.js (main) 28 bytes [entry] [rendered]\r\n\r\nERROR in Expected UMD module file (/node_modules/url/node_modules/punycode/punycode.js) to contain exactly one statement, but found [object Object],[object Object].\r\n\u003c/code>\u003c/pre>\r\n\r\n\r\n## 🌍 Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre>\u003ccode>\r\nAngular CLI: 9.0.0-rc.7\r\nNode: 12.13.1\r\nOS: win32 x64\r\n\r\nAngular: 9.0.0-rc.7\r\n... animations, cli, common, compiler, compiler-cli, core, forms\r\n... language-service, platform-browser, platform-browser-dynamic\r\n... platform-server, router, service-worker\r\nIvy Workspace: Yes\r\n\r\nPackage Version\r\n--------------------------------------------------------------------\r\n@angular-devkit/architect 0.900.0-rc.7\r\n@angular-devkit/build-angular 0.900.0-rc.7\r\n@angular-devkit/build-optimizer 0.900.0-rc.7\r\n@angular-devkit/build-webpack 0.900.0-rc.7\r\n@angular-devkit/core 9.0.0-rc.7\r\n@angular-devkit/schematics 9.0.0-rc.7\r\n@angular/cdk 9.0.0-rc.5\r\n@angular/fire 5.2.1\r\n@angular/google-maps 9.0.0-rc.5\r\n@angular/material 9.0.0-rc.5\r\n@angular/pwa 0.900.0-rc.7\r\n@ngtools/webpack 9.0.0-rc.7\r\n@nguniversal/module-map-ngfactory-loader 9.0.0-next.9\r\n@schematics/angular 9.0.0-rc.7\r\n@schematics/update 0.900.0-rc.7\r\nrxjs 6.5.3\r\ntypescript 3.6.4\r\nwebpack 4.41.2\r\n\u003c/code>\u003c/pre>","author":{"url":"https://github.com/naveedahmed1","@type":"Person","name":"naveedahmed1"},"datePublished":"2019-12-23T15:15:02Z","url":"https://github.com/angular/angular/issues/34544"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f0df1e39-7f53-9e9b-0236-478546b74d65 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9090:36A3E:1A6DDCA:23319B0:6B015A38 |
| html-safe-nonce | 7d2ab24227bbe7e651c6aba7722578df0c0ac047cbaa38eccb81cc49a4f32c17 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDkwOjM2QTNFOjFBNkREQ0E6MjMzMTlCMDo2QjAxNUEzOCIsInZpc2l0b3JfaWQiOiI1NzI5NDk0Njg1NDIwOTY4NTA0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 81c5ea3d505982eb8dea6aafe3c1517c4cb0c204e7a1ee3b59c92c40c34afa8a |
| hovercard-subject-tag | issue:541795169 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/34544/issue_layout |
| twitter:image | https://opengraph.githubassets.com/659bbb9d253a924a3a4724d3cbdeb58483362403a8e340e316a2ed3096c83795/angular/angular/issues/34544 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/659bbb9d253a924a3a4724d3cbdeb58483362403a8e340e316a2ed3096c83795/angular/angular/issues/34544 |
| og:image:alt | 🐞 bug report Affected Package The issue is caused by package @angular/platform-server Is this a regression? Yes, the previous version in which this bug was not present was: @angular/platform-server... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | naveedahmed1 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width