René's URL Explorer Experiment


Title: Nondescript compilation error message when Ivy enabled · Issue #30885 · angular/angular · GitHub

Open Graph Title: Nondescript compilation error message when Ivy enabled · Issue #30885 · angular/angular

X Title: Nondescript compilation error message when Ivy enabled · Issue #30885 · angular/angular

Description: 🐞 bug report When compiling an upgraded Angular 8.0.0 project with Ivy enabled, the compiler generates an ERROR in Value [object Object] is not literal and cannot be used in this context. error with no further information to help identif...

Open Graph Description: 🐞 bug report When compiling an upgraded Angular 8.0.0 project with Ivy enabled, the compiler generates an ERROR in Value [object Object] is not literal and cannot be used in this context. error wit...

X Description: 🐞 bug report When compiling an upgraded Angular 8.0.0 project with Ivy enabled, the compiler generates an ERROR in Value [object Object] is not literal and cannot be used in this context. error wit...

Opengraph URL: https://github.com/angular/angular/issues/30885

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Nondescript compilation error message when Ivy enabled","articleBody":"# 🐞 bug report\r\n\r\nWhen compiling an upgraded Angular 8.0.0 project with Ivy enabled, the compiler generates an `ERROR in Value [object Object] is not literal and cannot be used in this context.` error with no further information to help identify the cause.\r\n \r\n### Is this a regression?\r\n\r\nNo. I have not tried to compile with Ivy enabled before. The project does compile fine with AoT without Ivy enabled though.\r\n\r\n### Description\r\n\r\nI have a reasonably large application that was recently upgraded from Angular 7 to Angular 8.0.0. The application compiles without issue however when Ivy is enabled the compiler produces the following error:\r\n\r\n\u003cpre>\u003ccode>\r\nDate: 2019-06-06T04:11:25.373Z\r\nHash: 087b7b5fb4b324ff6aca\r\nTime: 49369ms\r\nchunk {0} runtime-es5.b13fe75f2187557b33a6.js, runtime-es5.b13fe75f2187557b33a6.js.map (runtime) 1.49 kB [entry] [rendered]\r\nchunk {1} main-es5.4af9b61479361f268d39.js, main-es5.4af9b61479361f268d39.js.map (main) 186 bytes [initial] [rendered]\r\nchunk {2} polyfills-es5.cc41145fc3ff39238270.js, polyfills-es5.cc41145fc3ff39238270.js.map (polyfills) 68.1 kB [initial] [rendered]\r\nchunk {3} styles.1a689b634a36680c47f4.css, styles.1a689b634a36680c47f4.css.map (styles) 3.66 kB [initial] [rendered]\r\nchunk {scripts} scripts.403d9d57243d96fb1784.js, scripts.403d9d57243d96fb1784.js.map (scripts) 1.18 kB [entry] [rendered]\r\n\r\nERROR in Value [object Object] is not literal and cannot be used in this context.\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno 1\r\nnpm ERR! content-snare-client@1.2.0 build:ngx: `ng build --configuration=${NG_ENV:-prod} --deploy-url=${NG_DEPLOY_URL:-https://app.contentsnare.com/}`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the content-snare-client@1.2.0 build:ngx script.\r\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     /home/mark/.npm/_logs/2019-06-06T04_11_25_582Z-debug.log\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno 1\r\nnpm ERR! content-snare-client@1.2.0 build:aot: `npm run build:ngx`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the content-snare-client@1.2.0 build:aot script.\r\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\n\u003c/code>\u003c/pre>\r\n\r\nI reviewed the referenced log files and they provide no additional information.\r\n\r\nThe only error information that is produced is:\r\n\r\n`ERROR in Value [object Object] is not literal and cannot be used in this context.`\r\n\r\nNot sure if relevant, but the normal AoT non-ivy enabled compilation creates 28 separate chunks, with scripts being one of the last chunks created. In the above, it creates only 5 chunks.\r\n\r\n## 🔬 Minimal Reproduction\r\n\r\nI tried compiling an empty Angular 8 project and this compiles with Ivy enabled without issue.  \r\n\r\nIt is very hard to provide a minimum project as my project is quite large and without any additional error information it would take me weeks to gradually remove code until the error goes away.\r\n\r\nAlthough the project does comprise a dozen or so modules, the number of 3rd party NPM packages is quite small and I receive no NPM compatibility warnings when I run `npm clean-install`.\r\n\r\nBelow is a list of installed project NPM packages if this helps:\r\n\r\n\u003cpre>\u003ccode>\r\n\"dependencies\": {\r\n    \"@angular/animations\": \"^8.0.0\",\r\n    \"@angular/common\": \"^8.0.0\",\r\n    \"@angular/compiler\": \"^8.0.0\",\r\n    \"@angular/core\": \"^8.0.0\",\r\n    \"@angular/forms\": \"^8.0.0\",\r\n    \"@angular/platform-browser\": \"^8.0.0\",\r\n    \"@angular/platform-browser-dynamic\": \"^8.0.0\",\r\n    \"@angular/router\": \"^8.0.0\",\r\n    \"@fullcalendar/core\": \"^4.2.0\",\r\n    \"@fullcalendar/daygrid\": \"^4.2.0\",\r\n    \"@ngx-translate/core\": \"^11.0.1\",\r\n    \"@ngx-translate/http-loader\": \"^4.0.0\",\r\n    \"classlist.js\": \"^1.1.20150312\",\r\n    \"core-js\": \"^3.1.2\",\r\n    \"file-saver\": \"^2.0.1\",\r\n    \"moment\": \"^2.24.0\",\r\n    \"ng2-dragula\": \"^2.1.1\",\r\n    \"ngx-clipboard\": \"^12.0.1\",\r\n    \"ngx-filesaver\": \"^2.2.1\",\r\n    \"rollbar\": \"^2.7.1\",\r\n    \"rxjs\": \"^6.5.2\",\r\n    \"ts-md5\": \"^1.2.4\",\r\n    \"tslib\": \"^1.9.3\",\r\n    \"zone.js\": \"~0.9.1\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"@angular-devkit/build-angular\": \"^0.800.0\",\r\n    \"@angular/cli\": \"^8.0.0\",\r\n    \"@angular/compiler-cli\": \"^8.0.0\",\r\n    \"@angular/language-service\": \"^8.0.0\",\r\n    \"@biesbjerg/ngx-translate-extract\": \"^2.3.4\",\r\n    \"@compodoc/compodoc\": \"^1.1.9\",\r\n    \"@types/file-saver\": \"^2.0.1\",\r\n    \"@types/jasmine\": \"^3.3.12\",\r\n    \"@types/jasminewd2\": \"^2.0.6\",\r\n    \"@types/node\": \"~8.9.3\",\r\n    \"codelyzer\": \"^5.1.0\",\r\n    \"cspell\": \"^3.2.17\",\r\n    \"gzipper\": \"^2.6.0\",\r\n    \"jasmine-core\": \"^3.4.0\",\r\n    \"jasmine-spec-reporter\": \"^4.2.1\",\r\n    \"karma\": \"^4.1.0\",\r\n    \"karma-chrome-launcher\": \"^2.2.0\",\r\n    \"karma-coverage-istanbul-reporter\": \"^2.0.5\",\r\n    \"karma-jasmine\": \"^2.0.1\",\r\n    \"karma-jasmine-html-reporter\": \"^1.4.2\",\r\n    \"prettier\": \"^1.17.1\",\r\n    \"protractor\": \"^5.4.2\",\r\n    \"ts-node\": \"~7.0.0\",\r\n    \"tslint\": \"~5.16.0\",\r\n    \"tslint-config-prettier\": \"^1.18.0\",\r\n    \"typescript\": \"~3.4.5\",\r\n    \"webpack-bundle-analyzer\": \"^3.3.2\"\r\n  }\r\n\u003c/code>\u003c/pre>\r\n\r\n\r\n## 🔥 Exception or Error\r\n\u003cpre>\u003ccode>\r\nERROR in Value [object Object] is not literal and cannot be used in this context.\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: 8.0.1\r\nNode: 11.8.0\r\nOS: linux x64\r\nAngular: 8.0.0\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... language-service, platform-browser, platform-browser-dynamic\r\n... router\r\n\r\nPackage                           Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect         0.800.1\r\n@angular-devkit/build-angular     0.800.1\r\n@angular-devkit/build-optimizer   0.800.1\r\n@angular-devkit/build-webpack     0.800.1\r\n@angular-devkit/core              8.0.1\r\n@angular-devkit/schematics        8.0.1\r\n@angular/cli                      8.0.1\r\n@ngtools/webpack                  8.0.1\r\n@schematics/angular               8.0.1\r\n@schematics/update                0.800.1\r\nrxjs                              6.5.2\r\ntypescript                        3.4.5\r\nwebpack                           4.30.0\r\n\u003c/code>\u003c/pre>\r\n\r\n\r\n","author":{"url":"https://github.com/mark-akturatech","@type":"Person","name":"mark-akturatech"},"datePublished":"2019-06-06T04:52:31Z","url":"https://github.com/angular/angular/issues/30885"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b716c375-445c-9e53-6bb3-38e2c9ef8f32
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id96A2:2454CC:13E15AE:193FB6A:6B012968
html-safe-nonce13a3992835a0ac0b20e60a62e37053a3797016bbe6be528daaaabc71166f7d99
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkEyOjI0NTRDQzoxM0UxNUFFOjE5M0ZCNkE6NkIwMTI5NjgiLCJ2aXNpdG9yX2lkIjoiNjU0NzIzNjQ3ODM5MTQ5NTAxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacfcf9964ebefee801712d3a4d4611ed8e65b8f26d434c6ffbc666be5b4185e213
hovercard-subject-tagissue:452830988
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/30885/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7b41bf9d60f3b4768fb11842179b6c9b02c8985f71e1d4e59c98f9e399f396ae/angular/angular/issues/30885
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7b41bf9d60f3b4768fb11842179b6c9b02c8985f71e1d4e59c98f9e399f396ae/angular/angular/issues/30885
og:image:alt🐞 bug report When compiling an upgraded Angular 8.0.0 project with Ivy enabled, the compiler generates an ERROR in Value [object Object] is not literal and cannot be used in this context. error wit...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemark-akturatech
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/30885#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F30885
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F30885
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/30885
Reloadhttps://github.com/angular/angular/issues/30885
Reloadhttps://github.com/angular/angular/issues/30885
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests141 (141)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/30885
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/30885
Nondescript compilation error message when Ivy enabledhttps://github.com/angular/angular/issues/30885#top
freq2: mediumhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/mark-akturatech
mark-akturatechhttps://github.com/mark-akturatech
on Jun 6, 2019https://github.com/angular/angular/issues/30885#issue-452830988
https://github.com/santoshyadavdev
santoshyadavdevhttps://github.com/santoshyadavdev
on Jun 6, 2019https://github.com/angular/angular/issues/30885#issuecomment-499431502
https://github.com/cyr-x
cyr-xhttps://github.com/cyr-x
on Jun 6, 2019https://github.com/angular/angular/issues/30885#issuecomment-499459877
interpreter.tshttps://github.com/angular/angular/blob/1b613c3ebf0deccd471c9597998c38a6823a83f6/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.ts#L558
#30181https://github.com/angular/angular/pull/30181
mheveryhttps://github.com/mhevery
comp: ivyhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22comp%3A%20ivy%22
on Jun 6, 2019https://github.com/angular/angular/issues/30885#event-2394834394
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Jun 6, 2019https://github.com/angular/angular/issues/30885#event-2394835033
https://github.com/alxhub
alxhubhttps://github.com/alxhub
on Jun 6, 2019https://github.com/angular/angular/issues/30885#issuecomment-499685356
https://github.com/mark-akturatech
mark-akturatechhttps://github.com/mark-akturatech
on Jun 7, 2019https://github.com/angular/angular/issues/30885#issuecomment-499714309
karahttps://github.com/kara
severity3: brokenhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
freq2: mediumhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%22
on Jun 13, 2019https://github.com/angular/angular/issues/30885#event-2412066178
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
Backloghttps://github.com/angular/angular/milestone/82
on Jun 13, 2019https://github.com/angular/angular/issues/30885#event-2412066401
https://github.com/alessiostalla
alessiostallahttps://github.com/alessiostalla
on Jun 27, 2019https://github.com/angular/angular/issues/30885#issuecomment-506202101
https://github.com/alessiostalla
alessiostallahttps://github.com/alessiostalla
on Jul 5, 2019https://github.com/angular/angular/issues/30885#issuecomment-508821988
https://github.com/veben
vebenhttps://github.com/veben
on Oct 17, 2019https://github.com/angular/angular/issues/30885#issuecomment-543033856
interpreter.tshttps://github.com/angular/angular/blob/1b613c3ebf0deccd471c9597998c38a6823a83f6/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.ts#L558
#30181https://github.com/angular/angular/pull/30181
https://github.com/j-martinez-dev
j-martinez-devhttps://github.com/j-martinez-dev
on Oct 20, 2019https://github.com/angular/angular/issues/30885#issuecomment-544237583
interpreter.tshttps://github.com/angular/angular/blob/1b613c3ebf0deccd471c9597998c38a6823a83f6/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.ts#L558
#30181https://github.com/angular/angular/pull/30181
https://github.com/JoostK
JoostKhttps://github.com/JoostK
on Nov 1, 2019https://github.com/angular/angular/issues/30885#issuecomment-548725476
#33453https://github.com/angular/angular/pull/33453
#33453https://github.com/angular/angular/pull/33453
https://github.com/cocolink021195
cocolink021195https://github.com/cocolink021195
on Nov 18, 2019https://github.com/angular/angular/issues/30885#issuecomment-554841439
https://github.com/JoostK
JoostKhttps://github.com/JoostK
on Nov 18, 2019https://github.com/angular/angular/issues/30885#issuecomment-554851358
https://github.com/mark-akturatech
mark-akturatechhttps://github.com/mark-akturatech
on Jan 21, 2020https://github.com/angular/angular/issues/30885#issuecomment-576486360
JoostKhttps://github.com/JoostK
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jan 21, 2020https://github.com/angular/angular/issues/30885#event-2964857435
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Feb 21, 2020https://github.com/angular/angular/issues/30885#issuecomment-589719413
automatic conversation locking policyhttps://github.com/angular/angular/blob/67d80f/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Feb 21, 2020https://github.com/angular/angular/issues/30885#event-3061038198
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/30885
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/30885
freq2: mediumhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
BacklogNo due datehttps://github.com/angular/angular/milestone/82
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.