Skip to content

Likely nil pointer dereference during program construction #64418

Description

No repro, but reporting shows this crash was hit on 7.1.0-dev.20260911.1 and 7.1.0-dev.20260910.1

internal/module.(*resolutionState).loadModuleFromExportsOrImports()
	internal/module/resolver.go:731
internal/module.(*resolutionState).loadModuleFromExports()
	internal/module/resolver.go:695
internal/module.(*resolutionState).loadModuleFromSpecificNodeModulesDirectory()
	internal/module/resolver.go:1143
internal/module.(*resolutionState).loadModuleFromImmediateNodeModulesDirectory()
	internal/module/resolver.go:1042
internal/module.(*resolutionState).loadModuleFromNearestNodeModulesDirectoryWorker.func1()
	internal/module/resolver.go:1023
internal/tspath.ForEachAncestorDirectory[...]()
	internal/tspath/path.go:1118
internal/module.(*resolutionState).loadModuleFromNearestNodeModulesDirectoryWorker()
	internal/module/resolver.go:1018
internal/module.(*resolutionState).loadModuleFromNearestNodeModulesDirectory()
	internal/module/resolver.go:1003
internal/module.(*resolutionState).resolveNodeLikeWorker()
	internal/module/resolver.go:573
internal/module.(*resolutionState).resolveNodeLike()
	internal/module/resolver.go:524
internal/module.(*Resolver).ResolveModuleName()
	internal/module/resolver.go:312
internal/compiler.(*fileLoader).resolveImportsAndModuleAugmentations()
	internal/compiler/fileloader.go:871
internal/compiler.(*parseTask).load()
	internal/compiler/filesparser.go:171
internal/compiler.(*filesParser).start.func1()
	internal/compiler/filesparser.go:314
internal/core.(*parallelWorkGroup).Queue.func1()
	internal/core/workgroup.go:40

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugA bug in TypeScriptCrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad output

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions