Skip to content

rspack dev server: error logs not shown #28179

@dangbert

Description

@dangbert

Current Behavior

If I create a default nx project with rspack, and induce any compile error (e.g import a file that doesn't exist) the failed compilation is reported by the CLI, but no error message shows up.

image

After a while I figured out I could find the error by visiting the dev server port in the browser:

image

Expected Behavior

The compile error must be logged in the terminal

GitHub Repo

https://github.com/dangbert/nxwarningdemo/tree/error-compiling2

^please use the error-compiling2 branch

Steps to Reproduce

git clone https://github.com/dangbert/nxwarningdemo && cd nxwarningdemo

# checkout the specific branch I made for this issue
git checkout --track origin/error-compiling2
yarn
yarn start

Nx Report

nx                 : 19.8.0
@nx/js             : 19.8.0
@nx/jest           : 19.8.0
@nx/linter         : 19.8.0
@nx/eslint         : 19.8.0
@nx/workspace      : 19.8.0
@nx/cypress        : 19.8.0
@nx/devkit         : 19.8.0
@nx/eslint-plugin  : 19.8.0
@nx/react          : 19.8.0
@nrwl/tao          : 19.8.0
@nx/web            : 19.8.0
@nx/webpack        : 19.8.0
typescript         : 5.5.4
---------------------------------------
Community plugins:
@nx/rspack : 19.7.1

Failure Logs

No response

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions