Webpack stats error messages not printing problematic source filename #9023
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
domain: dx
Related to developer experience of working on Docusaurus sites
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
The code to print console error messages is quite bad:
'react-dev-utils/formatWebpackMessages'
does not print all the relevant info, notably the file path that on which the error happens, and this prevents users from solving their problems.Example #9022
Reproducible demo
No response
Steps to reproduce
src/thing.xyz
import './thing.xyz'
onsrc/index.tsx
Console error:
However, the Dev Server error overlay works better:
Expected behavior
We should print relevant information to the console. At least the file path.
This info is definitively available in the Webpack stats:
Actual behavior
Error message does not contain the problematic file path
Your environment
Self-service
The text was updated successfully, but these errors were encountered: