Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/rude-olives-tease.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@arethetypeswrong/core": patch
---

Fixed bug that could cause a crash while checking for FalseExportDefault
6 changes: 1 addition & 5 deletions packages/core/src/checks/entrypointResolutionProblems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,7 @@ export function getEntrypointResolutionProblems(
})
.getTypeChecker();
// Check for `default` property on `jsModule["export="]`
if (
!jsChecker
.getExportsAndPropertiesOfModule(jsChecker.resolveExternalModuleSymbol(jsSourceFile.symbol))
.some((s) => s.name === "default")
) {
if (!jsChecker.getExportsAndPropertiesOfModule(jsSourceFile.symbol).some((s) => s.name === "default")) {
problems.push({
kind: "FalseExportDefault",
entrypoint: subpath,
Expand Down
Binary file added packages/core/test/fixtures/@[email protected]
Binary file not shown.
Loading