I get this error using webpack after upgrading to TS 6.0:
ERROR in ./src/Inventory/components/BarcodeScanner/QrCodeScanner.tsx
[tsl] ERROR
TS5011: The common source directory of 'tsconfig.json' is './src/Inventory/components/BarcodeScanner'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.
Visit https://aka.ms/ts6 for migration information.
The import in question is:
import BarcodeScanner from "./BarcodeScanner";
I am very confused because the tsconfig.json is definitely not in that folder. The command I run is "NODE_OPTIONS='--max-old-space-size=8192' webpack --watch --mode development --devtool eval-cheap-module-source-map"