René's URL Explorer Experiment


Title: AOT Error resolving funcion symbol statically. Worked in 2.3.1 and not in 2.4.0 · Issue #13605 · angular/angular · GitHub

Open Graph Title: AOT Error resolving funcion symbol statically. Worked in 2.3.1 and not in 2.4.0 · Issue #13605 · angular/angular

X Title: AOT Error resolving funcion symbol statically. Worked in 2.3.1 and not in 2.4.0 · Issue #13605 · angular/angular

Description: I'm submitting a ... (check one with "x") [X] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/an...

Open Graph Description: I'm submitting a ... (check one with "x") [X] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not submit support request...

X Description: I'm submitting a ... (check one with "x") [X] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not su...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AOT Error resolving funcion symbol statically. Worked in 2.3.1 and not in 2.4.0","articleBody":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[X] bug report => search github for a similar issue or PR before submitting\r\n[ ] feature request\r\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n```\r\n\r\n**Current behavior**\r\nI have my own property decorators (used for validation) applied throughout a sizable Angular project. These decorators have had no issues with `ngc` with the exception of maybe requiring one of the params passed to the decoration to be exported. However, as of `2.4.0` I am getting the following error:\r\n\r\n```\r\nError: Error encountered resolving symbol values statically. Calling function '[function name]',\r\nfunction calls are not supported. Consider replacing the function or lambda with a reference to\r\nan exported function.\r\n```\r\n\r\nTo provide more detail, the decorator allows to be passed a custom validation function as part of one of it's parameters. I attempted to save the passed function value as an exported constant and still received the same error.\r\n\r\nReverting to `2.3.1` \"resolves\" the issue. Of course there are ways to work around this, but I thought I should bring it up in case there's something that was not caught in regression testing or something of the sort.\r\n\r\n**Expected behavior**\r\nAOT compilation with no error. I have been able to compile with these decorators since around `rc.6` days, around the time that I wrote them.\r\n\r\n**Minimal reproduction of the problem with instructions**\r\nSorry, cannot reproduce since it's an AOT compilation issue. If it's helpful, this would be a simplified representation of what I described above:\r\n```ts\r\nexport const validationOptions = { option: optionValue };\r\n@MyValidationDecorator( TypeEnum.type, ValidationFunction(validationOptions) )\r\nmyClassProp: type;\r\n```\r\n\r\nAdditionally, also as mentioned above, the following doesn't work either, attempting to follow the indication of \"Consider replacing the function or lambda with a reference to an exported function.\":\r\n```ts\r\nexport const validation = ValidationFunction({ option: optionValue });\r\n@MyValidationDecorator( TypeEnum.type, ValidationFunction(validation) )\r\nmyClassProp: type;\r\n```\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\nIdeally, being able to move forward with the same path I had been for a few months now. Like I said, there's ways to work around this, but ideally I wouldn't have to unless theres a specific Angular Compiler need/benefit to this process. I looked at the change log and there are some compiler changes around metadata, but I did not see something that immediately jumped at me as the cause of this Error.\r\n\r\n**Please tell us about your environment:**\r\nMac OS X 10.11.6, VSCode 1.9.0-insider, npm 3.10.8, webpack 2.2.0-rc.1, webpack-dev-server 2.2.0-rc.0, Typescript 2.0.10\r\n\r\n* **Angular version:** 2.4.0. Not an issue with 2.3.1\r\n\r\n* **Browser:** Not in browser\r\n \r\n* **Language:** Typescript 2.0.10\r\n\r\n* **Node (for AoT issues):** `node --version` = `v6.9.1`\r\n","author":{"url":"https://github.com/emilio-martinez","@type":"Person","name":"emilio-martinez"},"datePublished":"2016-12-21T09:28:17Z","url":"https://github.com/angular/angular/issues/13605"}

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:5954efc4-4de6-1dc5-3b29-cdd290a27b9d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEE08:2270F4:68BEEA:8D36BB:6B00D703
html-safe-nonce3a8156675eabe104bef5b100d467e8d8dbca6ae63592cba67e739323392f94e3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRTA4OjIyNzBGNDo2OEJFRUE6OEQzNkJCOjZCMDBENzAzIiwidmlzaXRvcl9pZCI6IjIyMDY5MDQ1MjY2MzAzNDQ0NTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf768c044068111b14eff05fff4e2a91cd8207250562785e69c1fe986cb371c40
hovercard-subject-tagissue:196884365
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/13605/issue_layout
twitter:imagehttps://opengraph.githubassets.com/834b6262b6c481b16fcc80e3bdadeb354b1892926d4b4bf7326034b316c4a9cf/angular/angular/issues/13605
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/834b6262b6c481b16fcc80e3bdadeb354b1892926d4b4bf7326034b316c4a9cf/angular/angular/issues/13605
og:image:altI'm submitting a ... (check one with "x") [X] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not submit support request...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameemilio-martinez
hostnamegithub.com
expected-hostnamegithub.com
Nonea481f62a1e04c9b9bdcb5628230682c66d59006f5b13b080f79cba84a176905b
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
release84c8c5cc25e2fb7f2308428458538436baecc6d2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/13605#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F13605
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%2F13605
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/13605
Reloadhttps://github.com/angular/angular/issues/13605
Reloadhttps://github.com/angular/angular/issues/13605
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests139 (139)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/13605
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/13605
AOT Error resolving funcion symbol statically. Worked in 2.3.1 and not in 2.4.0https://github.com/angular/angular/issues/13605#top
https://github.com/chuckjaz
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
regressionIndicates than the issue relates to something that worked in a previous versionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22regression%22
https://github.com/emilio-martinez
emilio-martinezhttps://github.com/emilio-martinez
on Dec 21, 2016https://github.com/angular/angular/issues/13605#issue-196884365
https://github.com/slubowsky
slubowskyhttps://github.com/slubowsky
on Dec 21, 2016https://github.com/angular/angular/issues/13605#issuecomment-268599713
https://github.com/DzmitryShylovich
DzmitryShylovichhttps://github.com/DzmitryShylovich
on Dec 21, 2016https://github.com/angular/angular/issues/13605#issuecomment-268660684
@slubowskyhttps://github.com/slubowsky
#13436https://github.com/angular/angular/issues/13436
https://github.com/slubowsky
slubowskyhttps://github.com/slubowsky
on Dec 21, 2016https://github.com/angular/angular/issues/13605#issuecomment-268669862
@DzmitryShylovichhttps://github.com/DzmitryShylovich
https://github.com/mischkl
mischklhttps://github.com/mischkl
on Dec 22, 2016https://github.com/angular/angular/issues/13605#issuecomment-268783126
#13614https://github.com/angular/angular/issues/13614
https://github.com/DzmitryShylovich
DzmitryShylovichhttps://github.com/DzmitryShylovich
on Dec 23, 2016https://github.com/angular/angular/issues/13605#issuecomment-269031064
https://github.com/rangle/angular-2-aot-sandboxhttps://github.com/rangle/angular-2-aot-sandbox
https://github.com/emilio-martinez
emilio-martinezhttps://github.com/emilio-martinez
on Dec 24, 2016https://github.com/angular/angular/issues/13605#issuecomment-269064828
@DzmitryShylovichhttps://github.com/DzmitryShylovich
https://github.com/rangle/angular-2-aot-sandboxhttps://github.com/rangle/angular-2-aot-sandbox
matskohttps://github.com/matsko
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
regressionIndicates than the issue relates to something that worked in a previous versionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22regression%22
on Jan 5, 2017https://github.com/angular/angular/issues/13605#event-913268886
chuckjazhttps://github.com/chuckjaz
on Jan 5, 2017https://github.com/angular/angular/issues/13605#event-913283070
https://github.com/chuckjaz
chuckjazhttps://github.com/chuckjaz
on Jan 5, 2017https://github.com/angular/angular/issues/13605#issuecomment-270763112
@emilio-martinezhttps://github.com/emilio-martinez
https://github.com/chuckjaz
chuckjazhttps://github.com/chuckjaz
on Jan 5, 2017https://github.com/angular/angular/issues/13605#issuecomment-270777787
@emilio-martinezhttps://github.com/emilio-martinez
33910ddhttps://github.com/angular/angular/commit/33910ddfc98d092e514d90a2cec3b5daaf3d4277
matskohttps://github.com/matsko
on Jan 9, 2017https://github.com/angular/angular/issues/13605#event-916728873
fix(compiler): avoid evaluating arguments to unknown decoratorshttps://github.com/angular/angular/commit/d061adc02db9057d67de2f74b6e880005582e674
https://docs.github.com/articles/closing-issues-via-commit-messages
d061adchttps://github.com/angular/angular/commit/d061adc02db9057d67de2f74b6e880005582e674
fix(compiler): avoid evaluating arguments to unknown decoratorshttps://github.com/angular/angular/commit/5e9d3dba3a9f019acb7bf387bc902b90bb5805e0
https://docs.github.com/articles/closing-issues-via-commit-messages
5e9d3dbhttps://github.com/angular/angular/commit/5e9d3dba3a9f019acb7bf387bc902b90bb5805e0
matskohttps://github.com/matsko
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
d061adchttps://github.com/angular/angular/commit/d061adc02db9057d67de2f74b6e880005582e674
on Jan 9, 2017https://github.com/angular/angular/issues/13605#event-916753469
https://github.com/emilio-martinez
emilio-martinezhttps://github.com/emilio-martinez
on Jan 13, 2017https://github.com/angular/angular/issues/13605#issuecomment-272367952
@chuckjazhttps://github.com/chuckjaz
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 10, 2019https://github.com/angular/angular/issues/13605#issuecomment-529959061
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 Sep 10, 2019https://github.com/angular/angular/issues/13605#event-2622454429
idlecharahttps://github.com/idlechara
on Apr 27, 2021https://github.com/angular/angular/issues/13605#event-4648387807
fix(compiler): avoid evaluating arguments to unknown decoratorshttps://github.com/idlechara/angular/commit/0925b745ae9b2aa8b1a46dd051e899e680608ef5
https://docs.github.com/articles/closing-issues-via-commit-messages
0925b74https://github.com/idlechara/angular/commit/0925b745ae9b2aa8b1a46dd051e899e680608ef5
adhambaouzhttps://github.com/adhambaouz
on Nov 20, 2026https://github.com/angular/angular/issues/13605#event-36821989751
fix(compiler): avoid evaluating arguments to unknown decoratorshttps://github.com/adhambaouz/angular/commit/fb0da9309f9787b0a17df889f7cd911af8c5e9ef
https://docs.github.com/articles/closing-issues-via-commit-messages
fb0da93https://github.com/adhambaouz/angular/commit/fb0da9309f9787b0a17df889f7cd911af8c5e9ef
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/13605
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/13605
chuckjazhttps://github.com/chuckjaz
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
regressionIndicates than the issue relates to something that worked in a previous versionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22regression%22
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.