Title: angular 10 library publish error “Trying to publish a package that has been compiled by Ivy” · Issue #37973 · angular/angular · GitHub
Open Graph Title: angular 10 library publish error “Trying to publish a package that has been compiled by Ivy” · Issue #37973 · angular/angular
X Title: angular 10 library publish error “Trying to publish a package that has been compiled by Ivy” · Issue #37973 · angular/angular
Description: 🐞 bug report Affected Package The issue is caused by package @angular-devkit/build-angular:browser Is this a regression? No. In version 9 it is expected behavior. But suppose it should not happen in angular V10 Description I have created...
Open Graph Description: 🐞 bug report Affected Package The issue is caused by package @angular-devkit/build-angular:browser Is this a regression? No. In version 9 it is expected behavior. But suppose it should not happen i...
X Description: 🐞 bug report Affected Package The issue is caused by package @angular-devkit/build-angular:browser Is this a regression? No. In version 9 it is expected behavior. But suppose it should not happen i...
Opengraph URL: https://github.com/angular/angular/issues/37973
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"angular 10 library publish error “Trying to publish a package that has been compiled by Ivy”","articleBody":"# 🐞 bug report\r\n\r\n### Affected Package\r\nThe issue is caused by package @angular-devkit/build-angular:browser\r\n\r\n### Is this a regression?\r\n\r\nNo. In version 9 it is expected behavior. But suppose it should not happen in angular V10\r\n\r\n### Description\r\n\r\nI have created project and generate library with angular 10. But I can't set enableIvy to \"true\" build and publish my package. It throw error: \r\n\r\n> my-lib@0.0.1 prepublishOnly .\r\n> node --eval \"console.error('ERROR: Trying to publish a package that has been compiled by Ivy. This is not allowed.\\nPlease delete and rebuild the package, without compiling with Ivy, before attempting to publish.\\n')\" && exit 1\r\n\r\nERROR: Trying to publish a package that has been compiled by Ivy. This is not allowed.\r\nPlease delete and rebuild the package, without compiling with Ivy, before attempting to publish.\r\n\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno 1\r\nnpm ERR! my-lib@0.0.1 prepublishOnly: `node --eval \"console.error('ERROR: Trying to publish a package that has been compiled by Ivy. This is not allowed.\\nPlease delete and rebuild the package, without compiling with Ivy, before attempting to publish.\\n')\" && exit 1`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the my-lib@0.0.1 prepublishOnly script.\r\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\r\nnpm WARN Local package.json exists, but node_modules missing, did you mean to install?\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR! /home/aa/.npm/_logs/2020-07-08T13_03_35_422Z-debug.log\r\n\r\n## 🔬 Minimal Reproduction\r\n**repository with issue**: [https://github.com/Sikatrih/ng-cli-lib-ivy-issue](https://github.com/Sikatrih/ng-cli-lib-ivy-issue)\r\n\r\n## 🌍 Your Environment\r\n\r\n\u003cpre>\u003ccode>\r\n**Angular Version:**\r\nAngular CLI: 10.0.1\r\nNode: 12.16.2\r\nOS: linux x64\r\n\r\nAngular: 10.0.2\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... platform-browser, platform-browser-dynamic, router\r\nIvy Workspace: Yes\r\n\r\nPackage Version\r\n------------------------------------------------------------\r\n@angular-devkit/architect 0.1000.1\r\n@angular-devkit/build-angular 0.1000.1\r\n@angular-devkit/build-ng-packagr 0.1000.1\r\n@angular-devkit/build-optimizer 0.1000.1\r\n@angular-devkit/build-webpack 0.1000.1\r\n@angular-devkit/core 10.0.1\r\n@angular-devkit/schematics 10.0.1\r\n@angular/cli 10.0.1\r\n@ngtools/webpack 10.0.1\r\n@schematics/angular 10.0.1\r\n@schematics/update 0.1000.1\r\nng-packagr 10.0.0\r\nrxjs 6.5.5\r\ntypescript 3.9.6\r\nwebpack 4.43.0\r\n","author":{"url":"https://github.com/Sikatrih","@type":"Person","name":"Sikatrih"},"datePublished":"2020-07-08T13:21:31Z","url":"https://github.com/angular/angular/issues/37973"}
| 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:a0227eba-1b85-7125-07f0-1740d8872c89 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D97C:25A204:FFBD5C:1518EA3:6B0107F0 |
| html-safe-nonce | 1578d0dd3d105acf2e90900680f28be03bd23c36c026f53b5bf94e4a567325a0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTdDOjI1QTIwNDpGRkJENUM6MTUxOEVBMzo2QjAxMDdGMCIsInZpc2l0b3JfaWQiOiI2MTg4OTMzMDE1MDIwODMyNzUyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0bebdc63108967c489e4299b482b65c8d2561c8c8e5ca18ab7ac3153ed4c43c0 |
| hovercard-subject-tag | issue:653293114 |
| 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/37973/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a8c93632c9c9c365e0fd5629e00ea4d441d70d48e5543cf1acda8ab85b542464/angular/angular/issues/37973 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a8c93632c9c9c365e0fd5629e00ea4d441d70d48e5543cf1acda8ab85b542464/angular/angular/issues/37973 |
| og:image:alt | 🐞 bug report Affected Package The issue is caused by package @angular-devkit/build-angular:browser Is this a regression? No. In version 9 it is expected behavior. But suppose it should not happen i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Sikatrih |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| 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 | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width