René's URL Explorer Experiment


Title: Typescript pulls entire MUI library - super slow type checking · Issue #25085 · microsoft/TypeScript · GitHub

Open Graph Title: Typescript pulls entire MUI library - super slow type checking · Issue #25085 · microsoft/TypeScript

X Title: Typescript pulls entire MUI library - super slow type checking · Issue #25085 · microsoft/TypeScript

Description: TypeScript Version: 2.9.2 Search Terms: MUI slow typescript TSC compiles all MUI files Code In a react project, I use the UI library MUI (1.0). In total, I'm doing around 15 imports of this library, always in the following way: import Ci...

Open Graph Description: TypeScript Version: 2.9.2 Search Terms: MUI slow typescript TSC compiles all MUI files Code In a react project, I use the UI library MUI (1.0). In total, I'm doing around 15 imports of this library...

X Description: TypeScript Version: 2.9.2 Search Terms: MUI slow typescript TSC compiles all MUI files Code In a react project, I use the UI library MUI (1.0). In total, I'm doing around 15 imports of this lib...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/25085

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Typescript pulls entire MUI library - super slow type checking","articleBody":"\u003c!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨\r\n\r\nHalf of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common \"Bugs\" That Aren't Bugs section!\r\n\r\nPlease help us by doing the following steps before logging an issue:\r\n  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues\r\n  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ\r\n\r\nPlease fill in the *entire* template below.\r\n-->\r\n\r\n\u003c!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->\r\n**TypeScript Version:**  2.9.2\r\n\r\n\u003c!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:** \r\nMUI slow typescript\r\nTSC compiles all MUI files\r\n\r\n**Code**\r\n\r\nIn a react project, I use the UI library MUI (1.0).\r\nIn total, I'm doing around 15 imports of this library, always in the following way:\r\n`import CircularProgress from '@material-ui/core/CircularProgress/CircularProgress';`\r\n\r\ntsconfig.json\r\n```json\r\n{\r\n  \"compilerOptions\": {\r\n    \"baseUrl\": \"./src\",\r\n    \"outDir\": \"build/dist\",\r\n    \"target\": \"es5\",\r\n    \"lib\": [\"es6\", \"es7\", \"dom\"],\r\n    \"sourceMap\": true,\r\n    \"allowJs\": false,\r\n    \"jsx\": \"react\",\r\n    \"esModuleInterop\": true,\r\n    \"skipLibCheck\": true,\r\n    \"moduleResolution\": \"node\",\r\n    \"allowSyntheticDefaultImports\": true,\r\n    \"rootDir\": \"./src\",\r\n    \"noEmitOnError\": false,\r\n    \"isolatedModules\": true,\r\n    \"strictPropertyInitialization\": false,\r\n    \"forceConsistentCasingInFileNames\": true,\r\n    \"noFallthroughCasesInSwitch\": true,\r\n    \"noErrorTruncation\": true,\r\n    \"noImplicitReturns\": true,\r\n    \"noImplicitAny\": true,\r\n    \"noImplicitThis\": true,\r\n    \"strictNullChecks\": true,\r\n    \"diagnostics\": true,\r\n    \"suppressImplicitAnyIndexErrors\": true,\r\n    \"noUnusedLocals\": true\r\n  },\r\n  \"include\": [\r\n    \"src/**/*\"\r\n  ],\r\n  \"exclude\": [\r\n    \"dist\",\r\n    \"build\",\r\n    \"node_modules\",\r\n    \"src/**/__tests__\"\r\n  ],\r\n  \"defaultSeverity\": \"warning\"\r\n}\r\n```\r\n**Expected behavior:**\r\nTS picks up only the type definitions it needs from that library. (around 20 files, as I counted)\r\nCode compiles in 3-6 seconds, if I remove MUI (with lots of errors, certainly)\r\n![image](https://user-images.githubusercontent.com/7824615/41587790-50fe0cc8-73b0-11e8-9534-18f2bf23186e.png)\r\n\r\n**Actual behavior:** \r\nTS pulls the entire MUI library, with over 600.000 types\r\nCompilation (type checking) usually takes >1min\r\n![image](https://user-images.githubusercontent.com/7824615/41587106-ac265b5c-73ae-11e8-9ff9-b14850e901af.png)\r\n`tsc --extendedDiagnostics --listFiles --noEmit`\r\n![image](https://user-images.githubusercontent.com/7824615/41587038-869271fa-73ae-11e8-82e8-d641e06f28cf.png)\r\n\r\nand it goes on...\r\n\r\nI would expect this to happen if I was importing from the `core` modules, which exports all types, but I am most definitely not.\r\n\r\n**Related Issues:** \u003c!-- Did you find other bugs that looked similar? -->\r\nNo :( I found other cases of slow compilation, but not of this sort.\r\n","author":{"url":"https://github.com/rpmonteiro","@type":"Person","name":"rpmonteiro"},"datePublished":"2018-06-20T08:11:31Z","url":"https://github.com/microsoft/TypeScript/issues/25085"}

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:c6b4b10d-9c6d-003b-28e9-4c575b6163e3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBB96:399E4B:E42C5B:12FDBCA:6B01026C
html-safe-noncede84b341468c2b259abb0087bee38979e8d1937fe281a7eb2f7133a1a8ce11f2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjk2OjM5OUU0QjpFNDJDNUI6MTJGREJDQTo2QjAxMDI2QyIsInZpc2l0b3JfaWQiOiI4MDg3NTgyMDI0NzE1NTM0OTU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac59bbb9651d68723e558de40af07f96e624f1932928a38181c2b09782558a9858
hovercard-subject-tagissue:333968424
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/microsoft/TypeScript/25085/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1384c588d7d2f075c503b81a7349c8038dc245a7aec13207eaaace1e9cec5dcd/microsoft/TypeScript/issues/25085
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1384c588d7d2f075c503b81a7349c8038dc245a7aec13207eaaace1e9cec5dcd/microsoft/TypeScript/issues/25085
og:image:altTypeScript Version: 2.9.2 Search Terms: MUI slow typescript TSC compiles all MUI files Code In a react project, I use the UI library MUI (1.0). In total, I'm doing around 15 imports of this library...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerpmonteiro
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
turbo-cache-controlno-preview
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
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/microsoft/TypeScript/issues/25085#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F25085
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%2Fmicrosoft%2FTypeScript%2Fissues%2F25085
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=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/25085
Reloadhttps://github.com/microsoft/TypeScript/issues/25085
Reloadhttps://github.com/microsoft/TypeScript/issues/25085
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests309 (309)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/25085
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/25085
#25302https://github.com/microsoft/TypeScript/pull/25302
Typescript pulls entire MUI library - super slow type checkinghttps://github.com/microsoft/TypeScript/issues/25085#top
#25302https://github.com/microsoft/TypeScript/pull/25302
https://github.com/weswigham
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
High Priorityhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22High%20Priority%22
TypeScript 3.0https://github.com/microsoft/TypeScript/milestone/70
https://github.com/rpmonteiro
Kazoo (rpmonteiro)https://github.com/rpmonteiro
on Jun 20, 2018https://github.com/microsoft/TypeScript/issues/25085#issue-333968424
https://user-images.githubusercontent.com/7824615/41587790-50fe0cc8-73b0-11e8-9534-18f2bf23186e.png
https://user-images.githubusercontent.com/7824615/41587106-ac265b5c-73ae-11e8-9ff9-b14850e901af.png
https://user-images.githubusercontent.com/7824615/41587038-869271fa-73ae-11e8-82e8-d641e06f28cf.png
https://github.com/AnyhowStep
AnyhowStephttps://github.com/AnyhowStep
on Jun 20, 2018https://github.com/microsoft/TypeScript/issues/25085#issuecomment-398820326
https://github.com/rpmonteiro
Kazoo (rpmonteiro)https://github.com/rpmonteiro
on Jun 21, 2018https://github.com/microsoft/TypeScript/issues/25085#issuecomment-398999771
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Wesley Wigham (weswigham)https://github.com/weswigham
on Jun 21, 2018https://github.com/microsoft/TypeScript/issues/25085#event-1694135682
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
TypeScript 3.0https://github.com/microsoft/TypeScript/milestone/70
on Jun 21, 2018https://github.com/microsoft/TypeScript/issues/25085#event-1694135755
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
High Priorityhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22High%20Priority%22
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
on Jun 21, 2018https://github.com/microsoft/TypeScript/issues/25085#event-1694135817
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Jun 21, 2018https://github.com/microsoft/TypeScript/issues/25085#issuecomment-399167491
Wesley Wigham (@weswigham)https://github.com/weswigham
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Jun 21, 2018https://github.com/microsoft/TypeScript/issues/25085#issuecomment-399185191
Kazoo (@rpmonteiro)https://github.com/rpmonteiro
https://github.com/rpmonteiro
Kazoo (rpmonteiro)https://github.com/rpmonteiro
on Jun 25, 2018https://github.com/microsoft/TypeScript/issues/25085#issuecomment-399901744
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Jun 25, 2018https://github.com/microsoft/TypeScript/issues/25085#issuecomment-400045114
https://user-images.githubusercontent.com/2932786/41867368-d5217d62-7867-11e8-8d1a-dd9d8b34dc0e.png
https://github.com/rpmonteiro
Kazoo (rpmonteiro)https://github.com/rpmonteiro
on Jun 26, 2018https://github.com/microsoft/TypeScript/issues/25085#issuecomment-400290781
https://github.com/rpmonteiro
Kazoo (rpmonteiro)https://github.com/rpmonteiro
on Jun 27, 2018https://github.com/microsoft/TypeScript/issues/25085#issuecomment-400574576
https://user-images.githubusercontent.com/7824615/41959655-e739a93e-79ed-11e8-8d10-14f8c9f27d98.png
https://user-images.githubusercontent.com/7824615/41959744-27f4a6ea-79ee-11e8-82c1-80d08e7257f4.png
https://user-images.githubusercontent.com/7824615/41960590-714adaec-79f0-11e8-8dcd-f6e95aa66f07.png
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Jun 27, 2018https://github.com/microsoft/TypeScript/issues/25085#issuecomment-400582383
https://github.com/rpmonteiro
Kazoo (rpmonteiro)https://github.com/rpmonteiro
on Jun 27, 2018https://github.com/microsoft/TypeScript/issues/25085#issuecomment-400586812
https://user-images.githubusercontent.com/7824615/41962129-88b975ae-79f4-11e8-9d60-862763020658.png
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Jun 27, 2018https://github.com/microsoft/TypeScript/issues/25085#issuecomment-400862654
Wesley Wigham (weswigham)https://github.com/weswigham
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#25302https://github.com/microsoft/TypeScript/pull/25302
on Jun 28, 2018https://github.com/microsoft/TypeScript/issues/25085#event-1707409827
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
on Jun 28, 2018https://github.com/microsoft/TypeScript/issues/25085#event-1707414312
https://github.com/rpmonteiro
Kazoo (rpmonteiro)https://github.com/rpmonteiro
on Jun 29, 2018https://github.com/microsoft/TypeScript/issues/25085#issuecomment-401341334
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
on Jun 29, 2018https://github.com/microsoft/TypeScript/issues/25085#event-1709174409
microsofthttps://github.com/microsoft
on Oct 21, 2025https://github.com/microsoft/TypeScript/issues/25085#event-20415709823
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/25085
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/25085
Wesley Wigham (weswigham)https://github.com/weswigham
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
High Priorityhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22High%20Priority%22
TypeScript 3.0https://github.com/microsoft/TypeScript/milestone/70
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.