Skip to content

Conversation

@bmiddha
Copy link
Member

@bmiddha bmiddha commented Nov 21, 2025

Summary

Fix issue where ignoring ERR_MODULE_NOT_FOUND errors when importing the rspack config masks legitimate import issues

Fixes #5459

Details

If there is a bad import in the rspack config. the issue is masked and the logs print "No Rspack configuration found"

image

Updated error handling to not ignore ERR_MODULE_NOT_FOUND

image

How it was tested

Tested with heft-rspack-everything-test. To validate the error case, introduced a bad import.

Impacted documentation

@github-project-automation github-project-automation bot moved this to Needs triage in Bug Triage Nov 21, 2025
@bmiddha bmiddha enabled auto-merge (squash) November 21, 2025 22:39
@bmiddha bmiddha disabled auto-merge November 21, 2025 22:40
@bmiddha bmiddha enabled auto-merge (squash) November 21, 2025 22:40
…he rspack config masks legitimate import issues
@bmiddha bmiddha force-pushed the bmiddha/rspack-config-load branch from b5d3c6a to d9f383f Compare November 21, 2025 23:16
@iclanton iclanton moved this from Needs triage to In Progress in Bug Triage Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

[heft] rspack-plugin configuration loader incorrectly determines there is no configuration file

2 participants