René's URL Explorer Experiment


Title: Missing imports in ESM `.js` files do not produce errors (only warnings) · Issue #14421 · angular/angular-cli · GitHub

Open Graph Title: Missing imports in ESM `.js` files do not produce errors (only warnings) · Issue #14421 · angular/angular-cli

X Title: Missing imports in ESM `.js` files do not produce errors (only warnings) · Issue #14421 · angular/angular-cli

Description: 🐞 Bug report Command (mark with an x) - [x] build Is this a regression? N/A Description When an esm5/esm2015 .js file is trying to import a non-existing export, there is a warning emitted during ng build, but no hard error. Note this onl...

Open Graph Description: 🐞 Bug report Command (mark with an x) - [x] build Is this a regression? N/A Description When an esm5/esm2015 .js file is trying to import a non-existing export, there is a warning emitted during ng...

X Description: 🐞 Bug report Command (mark with an x) - [x] build Is this a regression? N/A Description When an esm5/esm2015 .js file is trying to import a non-existing export, there is a warning emitted during ng...

Opengraph URL: https://github.com/angular/angular-cli/issues/14421

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Missing imports in ESM `.js` files do not produce errors (only warnings)","articleBody":"# 🐞 Bug report\r\n\r\n### Command (mark with an `x`)\r\n```\r\n- [x] build\r\n```\r\n\r\n### Is this a regression?\r\nN/A\r\n\r\n\r\n### Description\r\nWhen an esm5/esm2015 `.js` file is trying to import a non-existing export, there is a warning emitted during `ng build`, but no hard error. Note this only affects `.js` files, since missing imports fail in `.ts` files.\r\n\r\nFor context:\r\nWe ran into this in angular/angular#30362, where esm files in `@angular/material` ended up trying to import missing exports from `@angular/core`. The build succeeded (with warnings only), but the app is broken.\r\n(See https://github.com/angular/angular/pull/30362#issuecomment-492230220 for more details.)\r\n\r\n## 🔬 Minimal Reproduction\r\nThis is a contrived minimal reproduction that produces the same error as the one seen in angular/angular#30362:\r\n\r\n- Download and unzip [test-app.zip](https://github.com/angular/angular-cli/files/3178172/test-app.zip).\r\n- Run `npm install`.\r\n- Run `npm run build`.\r\n\r\nThe repro project was created with `ng new test-app --defaults` and the following changes:\r\n- Change `src/main.ts` to `src/main.js` in `angular.json`.\r\n- Add `src/main.js` in `tsconfig.json > include`.\r\n- Rename `src/main.ts` to `src/main.js` and update its content to import `missingExport` from `@angular/core`.\r\n\r\n\r\n## 🔥 Exception or Error\r\n\u003cpre>\u003ccode>\r\nWARNING in ./src/main.js 2:12-25\r\n\"export 'missingExport' was not found in '@angular/core'\r\n\u003c/code>\u003c/pre>\r\n\r\n\r\n## 🌍 Your Environment\r\n\u003cpre>\u003ccode>\r\nAngular CLI: 8.0.0-rc.3\r\nNode: 10.15.3\r\nOS: win32 x64\r\nAngular: 8.0.0-rc.3\r\n... animations, cli, 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.0-rc.3\r\n@angular-devkit/build-angular     0.800.0-rc.3\r\n@angular-devkit/build-optimizer   0.800.0-rc.3\r\n@angular-devkit/build-webpack     0.800.0-rc.3\r\n@angular-devkit/core              8.0.0-rc.3\r\n@angular-devkit/schematics        8.0.0-rc.3\r\n@ngtools/webpack                  8.0.0-rc.3\r\n@schematics/angular               8.0.0-rc.3\r\n@schematics/update                0.800.0-rc.3\r\nrxjs                              6.4.0\r\ntypescript                        3.4.5\r\nwebpack                           4.30.0\r\n\u003c/code>\u003c/pre>\r\n","author":{"url":"https://github.com/gkalpak","@type":"Person","name":"gkalpak"},"datePublished":"2019-05-14T14:22:28Z","url":"https://github.com/angular/angular-cli/issues/14421"}

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:35cca01d-5c31-f43c-bedb-6d61f659e1ca
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC94E:2E7EBB:F39D74:1345941:6B010A36
html-safe-nonce18a1ea4712eead758249f9c350ee9163ac38dfa42dda3287a2f049ec5a5a0494
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTRFOjJFN0VCQjpGMzlENzQ6MTM0NTk0MTo2QjAxMEEzNiIsInZpc2l0b3JfaWQiOiI4NjQ5Mzk5OTMyMTMxODA1NzUwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac363b8653ab78d47ff2a09c61004b9d9568a4aaacacac14fe8503b72a0b05d114
hovercard-subject-tagissue:443944884
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-cli/14421/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f72e5631fd51a28ee64860ea641393196d3ab31eb97747d440c55af55b210464/angular/angular-cli/issues/14421
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f72e5631fd51a28ee64860ea641393196d3ab31eb97747d440c55af55b210464/angular/angular-cli/issues/14421
og:image:alt🐞 Bug report Command (mark with an x) - [x] build Is this a regression? N/A Description When an esm5/esm2015 .js file is trying to import a non-existing export, there is a warning emitted during ng...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegkalpak
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
turbo-cache-controlno-preview
go-importgithub.com/angular/angular-cli git https://github.com/angular/angular-cli.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id36891867
octolytics-dimension-repository_nwoangular/angular-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36891867
octolytics-dimension-repository_network_root_nwoangular/angular-cli
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-cli/issues/14421#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F14421
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-cli%2Fissues%2F14421
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-cli
Reloadhttps://github.com/angular/angular-cli/issues/14421
Reloadhttps://github.com/angular/angular-cli/issues/14421
Reloadhttps://github.com/angular/angular-cli/issues/14421
angularhttps://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Codehttps://github.com/angular/angular-cli
Issues198 (198)https://github.com/angular/angular-cli/issues
Pull requests23 (23)https://github.com/angular/angular-cli/pulls
Actionshttps://github.com/angular/angular-cli/actions
Security and quality8 (8)https://github.com/angular/angular-cli/security
Insightshttps://github.com/angular/angular-cli/insights
https://github.com/angular/angular-cli
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/14421
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/14421
#14435https://github.com/angular/angular-cli/pull/14435
Missing imports in ESM .js files do not produce errors (only warnings)https://github.com/angular/angular-cli/issues/14421#top
#14435https://github.com/angular/angular-cli/pull/14435
https://github.com/filipesilva
area: @angular-devkit/build-angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular-devkit%2Fbuild-angular%22
freq2: mediumhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%22
severity3: brokenhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
8.0https://github.com/angular/angular-cli/milestone/16
https://github.com/gkalpak
gkalpakhttps://github.com/gkalpak
on May 14, 2019https://github.com/angular/angular-cli/issues/14421#issue-443944884
angular/angular#30362https://github.com/angular/angular/pull/30362
angular/angular#30362 (comment)https://github.com/angular/angular/pull/30362#issuecomment-492230220
angular/angular#30362https://github.com/angular/angular/pull/30362
test-app.ziphttps://github.com/angular/angular-cli/files/3178172/test-app.zip
filipesilvahttps://github.com/filipesilva
area: @angular-devkit/build-angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular-devkit%2Fbuild-angular%22
on May 14, 2019https://github.com/angular/angular-cli/issues/14421#event-2340428377
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular-cli/milestone/11
on May 14, 2019https://github.com/angular/angular-cli/issues/14421#event-2340428419
filipesilvahttps://github.com/filipesilva
freq2: mediumhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%22
severity3: brokenhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
on May 14, 2019https://github.com/angular/angular-cli/issues/14421#event-2340429863
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular-cli/milestone/11
Backloghttps://github.com/angular/angular-cli/milestone/12
on May 14, 2019https://github.com/angular/angular-cli/issues/14421#event-2340429941
filipesilvahttps://github.com/filipesilva
Backloghttps://github.com/angular/angular-cli/milestone/12
8.0https://github.com/angular/angular-cli/milestone/16
on May 14, 2019https://github.com/angular/angular-cli/issues/14421#event-2340430440
filipesilvahttps://github.com/filipesilva
on May 15, 2019https://github.com/angular/angular-cli/issues/14421#event-2342806335
filipesilvahttps://github.com/filipesilva
on May 15, 2019https://github.com/angular/angular-cli/issues/14421#event-2344268945
fix(@angular-devkit/build-angular): show error for missing moduleshttps://github.com/filipesilva/angular-cli/commit/08cce96531035b0d85b5cf7aaa706524b3623131
https://docs.github.com/articles/closing-issues-via-commit-messages
08cce96https://github.com/filipesilva/angular-cli/commit/08cce96531035b0d85b5cf7aaa706524b3623131
kyliauhttps://github.com/kyliau
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#14435https://github.com/angular/angular-cli/pull/14435
on May 15, 2019https://github.com/angular/angular-cli/issues/14421#event-2344627826
kyliauhttps://github.com/kyliau
on May 15, 2019https://github.com/angular/angular-cli/issues/14421#event-2344627962
fix(@angular-devkit/build-angular): show error for missing moduleshttps://github.com/angular/angular-cli/commit/74f2ee68d6d166903d5ef571d8a793bd4994e142
https://docs.github.com/articles/closing-issues-via-commit-messages
74f2ee6https://github.com/angular/angular-cli/commit/74f2ee68d6d166903d5ef571d8a793bd4994e142
fix(@angular-devkit/build-angular): show error for missing moduleshttps://github.com/angular/angular-cli/commit/d8e0638c738f893d64e53fd45d0d4102322a74ce
https://docs.github.com/articles/closing-issues-via-commit-messages
d8e0638https://github.com/angular/angular-cli/commit/d8e0638c738f893d64e53fd45d0d4102322a74ce
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 9, 2019https://github.com/angular/angular-cli/issues/14421#issuecomment-529480442
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 9, 2019https://github.com/angular/angular-cli/issues/14421#event-2618731315
mostafaibrhttps://github.com/mostafaibr
on May 29, 2026https://github.com/angular/angular-cli/issues/14421#event-26099575733
fix(@angular-devkit/build-angular): show error for missing moduleshttps://github.com/mostafaibr/angular-cli/commit/59d6d5f84094c52bd1ee45d367df1c09019e1472
https://docs.github.com/articles/closing-issues-via-commit-messages
59d6d5fhttps://github.com/mostafaibr/angular-cli/commit/59d6d5f84094c52bd1ee45d367df1c09019e1472
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/14421
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/14421
filipesilvahttps://github.com/filipesilva
area: @angular-devkit/build-angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular-devkit%2Fbuild-angular%22
freq2: mediumhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%22
severity3: brokenhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
8.0https://github.com/angular/angular-cli/milestone/16
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.