René's URL Explorer Experiment


Title: @angular/localize loadTranslations can only be default-imported using the 'allowSyntheticDefaultImports' flag. · Issue #45179 · angular/angular · GitHub

Open Graph Title: @angular/localize loadTranslations can only be default-imported using the 'allowSyntheticDefaultImports' flag. · Issue #45179 · angular/angular

X Title: @angular/localize loadTranslations can only be default-imported using the 'allowSyntheticDefaultImports' flag. · Issue #45179 · angular/angular

Description: Which @angular/* package(s) are the source of the bug? localize Is this a regression? Yes Description When an app imports loadTranslations() from @angular/localize in v13.x.x this throws an error when running ng build. During testing I n...

Open Graph Description: Which @angular/* package(s) are the source of the bug? localize Is this a regression? Yes Description When an app imports loadTranslations() from @angular/localize in v13.x.x this throws an error w...

X Description: Which @angular/* package(s) are the source of the bug? localize Is this a regression? Yes Description When an app imports loadTranslations() from @angular/localize in v13.x.x this throws an error w...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@angular/localize loadTranslations can only be default-imported using the 'allowSyntheticDefaultImports' flag.","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\nlocalize\n\n### Is this a regression?\n\nYes\n\n### Description\n\nWhen an app imports `loadTranslations()` from `@angular/localize` in v13.x.x this throws an error when running `ng build`.\r\n\r\nDuring testing I narrowed this down to `import { loadTranslations } from '@angular/localize';`. This only happens on v13.x.x of @angular packages.\r\n\r\nSteps to reproduce:\r\n1. Create a new project using `ng new`\r\n2. Confirm that the project can be build `ng build`\r\n3. Install @angular/localize `npm install @angular/localize`\r\n4. Import `loadTranslations` in `main.ts` (don't have to call it just importing will be enough)\r\n5. Run `ng build` again, the build will error\r\n\r\nAdding `allowSyntheticDefaultImports` to tsconfig fixes the error but unsure if this is recommended or not.\n\n### Please provide a link to a minimal reproduction of the bug\n\n_No response_\n\n### Please provide the exception or error you saw\n\n```true\n~/C/b/angular-13-2 (main *) ng build\r\n✔ Browser application bundle generation complete.\r\n\r\nError: node_modules/@angular/compiler-cli/src/ngtsc/file_system/src/compiler_host.d.ts:9:8 - error TS1259: Module '\"/Users/robertrhoades/Code/bmj/angular-13-2/node_modules/typescript/lib/typescript\"' can only be default-imported using the 'allowSyntheticDefaultImports' flag\r\n\r\n9 import ts from 'typescript';\r\n         ~~\r\n\r\n  node_modules/typescript/lib/typescript.d.ts:7594:1\r\n    7594 export = ts;\r\n         ~~~~~~~~~~~~\r\n    This module is declared with using 'export =', and can only be used with a default import when using the 'allowSyntheticDefaultImports' flag.\r\n\r\n\r\nError: node_modules/@angular/compiler-cli/src/ngtsc/file_system/src/logical.d.ts:9:8 - error TS1259: Module '\"/Users/robertrhoades/Code/bmj/angular-13-2/node_modules/typescript/lib/typescript\"' can only be default-imported using the 'allowSyntheticDefaultImports' flag\r\n\r\n9 import ts from 'typescript';\r\n         ~~\r\n\r\n  node_modules/typescript/lib/typescript.d.ts:7594:1\r\n    7594 export = ts;\r\n         ~~~~~~~~~~~~\r\n    This module is declared with using 'export =', and can only be used with a default import when using the 'allowSyntheticDefaultImports' flag.\r\n\r\n\r\nError: node_modules/@angular/compiler-cli/src/ngtsc/file_system/src/util.d.ts:9:8 - error TS1259: Module '\"/Users/robertrhoades/Code/bmj/angular-13-2/node_modules/typescript/lib/typescript\"' can only be default-imported using the 'allowSyntheticDefaultImports' flag\r\n\r\n9 import ts from 'typescript';\r\n         ~~\r\n\r\n  node_modules/typescript/lib/typescript.d.ts:7594:1\r\n    7594 export = ts;\r\n         ~~~~~~~~~~~~\r\n    This module is declared with using 'export =', and can only be used with a default import when using the 'allowSyntheticDefaultImports' flag.\n```\n\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\n_                      _                 ____ _     ___\r\n    / \\   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|\r\n   / △ \\ | '_ \\ / _` | | | | |/ _` | '__|   | |   | |    | |\r\n  / ___ \\| | | | (_| | |_| | | (_| | |      | |___| |___ | |\r\n /_/   \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_|       \\____|_____|___|\r\n                |___/\r\n    \r\n\r\nAngular CLI: 13.2.4\r\nNode: 14.18.1\r\nPackage Manager: npm 6.14.15\r\nOS: darwin x64\r\n\r\nAngular: 13.2.3\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... localize, platform-browser, platform-browser-dynamic, router\r\n\r\nPackage                         Version\r\n---------------------------------------------------------\r\n@angular-devkit/architect       0.1302.4\r\n@angular-devkit/build-angular   13.2.4\r\n@angular-devkit/core            13.2.4\r\n@angular-devkit/schematics      13.2.4\r\n@angular/cli                    13.2.4\r\n@schematics/angular             13.2.4\r\nrxjs                            7.5.4\r\ntypescript                      4.5.5\n```\n\n\n### Anything else?\n\nConfirmed this by making a new angular 13 project and also upgrading a new angular 12 project to 13. In both cases same result. Commenting out the loadTranslations import resolves the issue.","author":{"url":"https://github.com/studioromeo","@type":"Person","name":"studioromeo"},"datePublished":"2022-02-23T17:15:46Z","url":"https://github.com/angular/angular/issues/45179"}

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:fcb66208-60c9-27e9-7930-54f1a1a117c7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id89BC:2463BD:F80028:13F145B:6B00FFAA
html-safe-nonce959d795262eec9fa72db4f43c1e4486b60b5993459832f797954dcc294b08c1f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUJDOjI0NjNCRDpGODAwMjg6MTNGMTQ1Qjo2QjAwRkZBQSIsInZpc2l0b3JfaWQiOiI2NzY2NDk0ODYyNzcyMTQxMjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac5d3a4e858535e3d7e37945702b27c43794e194a26e226f20d57014ce587d01fb
hovercard-subject-tagissue:1148362151
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/45179/issue_layout
twitter:imagehttps://opengraph.githubassets.com/df7910a8b6989ab33d292ed58ae8bdbed537388e98cb652dab2dd5747b9de825/angular/angular/issues/45179
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/df7910a8b6989ab33d292ed58ae8bdbed537388e98cb652dab2dd5747b9de825/angular/angular/issues/45179
og:image:altWhich @angular/* package(s) are the source of the bug? localize Is this a regression? Yes Description When an app imports loadTranslations() from @angular/localize in v13.x.x this throws an error w...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamestudioromeo
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
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
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/45179#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F45179
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%2F45179
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/45179
Reloadhttps://github.com/angular/angular/issues/45179
Reloadhttps://github.com/angular/angular/issues/45179
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/45179
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/45179
@angular/localize loadTranslations can only be default-imported using the 'allowSyntheticDefaultImports' flag.https://github.com/angular/angular/issues/45179#top
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
area: i18nIssues related to localization and internationalizationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20i18n%22
state: has PRhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20has%20PR%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/studioromeo
studioromeohttps://github.com/studioromeo
on Feb 23, 2022https://github.com/angular/angular/issues/45179#issue-1148362151
@angularhttps://github.com/angular
https://github.com/JoostK
JoostKhttps://github.com/JoostK
on Feb 23, 2022https://github.com/angular/angular/issues/45179#issuecomment-1049045343
JoostKhttps://github.com/JoostK
area: i18nIssues related to localization and internationalizationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20i18n%22
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
on Feb 23, 2022https://github.com/angular/angular/issues/45179#event-6126875368
ngbothttps://github.com/apps/ngbot
Backloghttps://github.com/angular/angular/milestone/82
on Feb 23, 2022https://github.com/angular/angular/issues/45179#event-6126875472
JoostKhttps://github.com/JoostK
on Feb 23, 2022https://github.com/angular/angular/issues/45179#event-6127540014
fix(localize): avoid imports into `compiler-cli` packagehttps://github.com/JoostK/angular/commit/d4f569db4067cd417f3eee4fa81b92a4dfb9a2ca
https://docs.github.com/articles/closing-issues-via-commit-messages
d4f569dhttps://github.com/JoostK/angular/commit/d4f569db4067cd417f3eee4fa81b92a4dfb9a2ca
JoostKhttps://github.com/JoostK
state: has PRhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20has%20PR%22
on Feb 23, 2022https://github.com/angular/angular/issues/45179#event-6127542731
jessicajaniukhttps://github.com/jessicajaniuk
on Feb 24, 2022https://github.com/angular/angular/issues/45179#event-6133735303
fix(localize): avoid imports into `compiler-cli` package (#45180)https://github.com/angular/angular/commit/d388522745835b8e30b66597560254f0e821c040
#45180https://github.com/angular/angular/pull/45180
https://docs.github.com/articles/closing-issues-via-commit-messages
d388522https://github.com/angular/angular/commit/d388522745835b8e30b66597560254f0e821c040
jessicajaniukhttps://github.com/jessicajaniuk
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
ca5603bhttps://github.com/angular/angular/commit/ca5603b09b06481529dce78ff995d674383e274f
on Feb 24, 2022https://github.com/angular/angular/issues/45179#event-6133735513
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Mar 27, 2022https://github.com/angular/angular/issues/45179#issuecomment-1079961278
automatic conversation locking policyhttps://github.com/angular/angular/blob/8f24bc9443b3872fe095d9f7f77b308a361a13b4/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Mar 27, 2022https://github.com/angular/angular/issues/45179#event-6313913585
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/45179
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/45179
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
area: i18nIssues related to localization and internationalizationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20i18n%22
state: has PRhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20has%20PR%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.