My project is typescript + webpack based and I ran into some dead ends during setup because of that. Especially in the report generation part, nyc would always render an empty table even though the coverage file was there.
In the end I got the project running by using @istanbuljs/nyc-config-typescript and adding the suggested .nycrc file suggested in their documentation.
Hope it helps someone.